Pix rotated 90 degrees on mobile, fine on laptop

Happened to me this week. I didn’t see this thread, or I would have checked if resizing was the problem.

What I did was deleted the pic that was somehow rotated by the software, and then uploaded the same pic again, and that worked.