Rear camera shakes

Recently got the iPhone XS , camera worked fine for the first couple days now the rear camera shakes. Front camera works fine. I have restarted the phone, cleaned the lens. Has this happened the anyone else ? How did you resolve the issue ?