Alternate mode menus in viewport by context
That menu that you discribed:

&quot;Rendered,&quot; &quot;Wireframe,&quot; &quot;Solid,&quot; &quot;Material Preview.&quot;

It is actually the shading menu, that appears on Z