If it happens when you don’t want it, or if you do want it.
Select the camera (right click it in the 3dview) and check in properties to see its scale-
I found that I had re-scaled the camera to a negative number and the view turned into a mirror image.