A family of Microsoft word processing software products for creating web, email, and print documents.
It sounds like you are using the Word Online web app rather than The MS Office 365 desktop software. To mix orientation in a document requires the use of Section Break (Next Page) but the limited online app does not support inserting Section Breaks.