Hi Shiizor00,
What you're seeing is lens flare or haze. When pointing the camera at a direct light source this can occur. There was a previous Apple article with this information that has been archived. However, the information stated the following:
"If you see a flare, haze, or spot near the edge of your photo or video
When you take a photo or video on your iPhone, iPad, or iPod touch, you might see a flare, haze, or reflected spot.
You might see these unexpected light effects when incoming light (usually from outside the field of view) is at an angle and reflects off the surfaces inside the camera. If this happens, move the camera slightly to change the position of the light, or shield the lens with your hand."
Additionally, you can find a very helpful user post explaining what you're seeing here: iPhone Camera Lens Flare and Reflections - Apple Community
To help combat the expected when taking a photo of a direct light source, try using Night Mode. Use Night mode on your iPhone - Apple Support
Cheers.