Hi hariraghav25,
Thanks for posting in Apple Support Communities. It can be difficult to isolate issues when using different devices with different hardware and software. However, it may help to make sure that you are tapping the focus area on the subject you want to focus on. Try the following steps from Use iPhone camera tools to set up your shot - Apple Support.
"Adjust the camera’s focus and exposure
Before you take a photo, the iPhone camera automatically sets the focus and exposure, and face detection balances the exposure across many faces. If you want to manually adjust the focus and exposure, do the following:
- Open Camera.
- Tap the screen to show the automatic focus area and exposure setting.
- Tap where you want to move the focus area.
- Next to the focus area, drag up or down to adjust the exposure."
Take care.