How to fix a mirrored or sideways photo
If text reads backwards, use Flip image. If the photo is on its side, use Rotate image.
Why a photo looks right on your phone
Phones store rotation as a note in the file, and not every app reads it. Rotating saves it properly.
Selfies
Front cameras often mirror photos. One horizontal flip fixes them.