I'm in the US so a page is 8.5 inches by 11 inches ie. letter size orientation PORTRAIT
Whether it is an existing Writer document or a simple document of a few lines, it looks portrait oriented but when printed to a physical printer, it comes out in landscape orientation. Also a simple calc spreadsheet does the same thing.
Libreoffice as it comes with Ubuntu 23.10 or before (in my case that would be Ubuntu 22.04) - does not have the problem.
My printers are Canon iX6820, which are able to take paper up to about tabloid size - which is larger than the typical letter or legal size.
I'm hearing other large format printers, such as Epson Stylus Pro 3880 have a similar issue.