Follow https://support.microsoft.com/en-us/office/show-or-hide-the-ribbon-in-office-d946b26e-0c8c-402d-a0f7-c6efa296b527
The ribbon is a set of toolbars at the top of the window in Office programs designed to help you quickly find the commands that you need to complete a task.
Show Ribbon options
When the ribbon is visible, in the lower-right corner of the ribbon, click the Ribbon Display Options icon.

Choose a state for the ribbon:
Full-screen mode: Hides the ribbon for the best view of your document, and only shows the ribbon when you select the ellipsis (...) in the upper right, or press the ALT key.
Show tabs only: Shows only the ribbon tabs, so you see more of your document, and you can still quickly switch among the tabs.
Always show Ribbon: Keeps all the tabs and commands on the ribbon visible all the time.
Expand or collapse the ribbon
You can toggle between having the ribbon expanded or collapsed in multiple ways.
If the ribbon is collapsed, expand it by doing one of the following:
Right-click any of the ribbon tabs and then uncheck Collapse the ribbon.

If the ribbon is expanded, collapse it by doing one of the following:
Right-click any of the ribbon tabs, and then select Collapse the ribbon.
If the ribbon isn't visible at all
If the ribbon isn't visible at all (no tabs are showing), then you probably have the state set to Full-screen mode. Select the ellipsis (...) at the top right of the screen. This temporarily restores the ribbon.
When you return to the document, the ribbon is hidden again. To keep the ribbon displayed, select Always show Ribbon from the Ribbon Display Options menu.

The ribbon is a set of toolbars at the top of the window in Office programs designed to help you quickly find the commands that you need to complete a task.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin