The rotate button in your viewer does not change the file
Most PDF readers have a rotate-view control, and it does what it says: it rotates the view. The bytes on disk are unchanged, so the page is still stored sideways and everyone else still receives it sideways. Some readers remember the setting per document in their own preferences, which is worse, because the page then looks correct to you and wrong to every recipient.
What this tool changes is the page dictionary, where a /Rotate entry records a multiple of 90 degrees that any conforming viewer must apply when displaying that page. Once it is written, the orientation is a property of the document.
The practical test is to open the saved file somewhere you have not touched — a different browser, a phone, a colleague. If it looks right there, the rotation is in the file.