Chosen Solution

iPhone front camera shows a black dot. (Photos below)

If I shine a flashlight or take a photo against the sun, the dot disappears. (Photo below)

Is my camera defective? What troubleshooting methods can I try?

I’m no specialist in iPhones but that looks like a faulty camera to me! I would try and replace it if I were you!