Whenever I upload photos online, they are always rotated counterclockwise 90 degrees. I try and re-rotate the photo and the problem persists. Help?

Windows 10
Lenovo Thinkpad W540
Applies to Google Chrome and Microsoft Edge