Would it be possible to directly switch between mobile and desktop views, rather than toggling between them? I know it can be programmatically done but is there a simple option in discourse admin panel?
AI-generated summary
In a discussion titled âMobile/Desktop View toggleâ under the Support category, MihirR asked if itâs possible to disable the manual toggle between mobile and desktop views, preferring an automatic, device-based switch. merefield clarified that the toggle is user-controlled and automated by default. MihirR further explained wanting to remove customization options like theme switching and view toggles for minimalism. Jagster suggested using a single theme and avoiding components. merefield offered technical workaroundsâusing URL parameters or CSS to hide the toggleâbut questioned the rationale. MihirR appreciated the CSS suggestion, later admitting they shouldâve used common sense [7]. Lilly and satonotdead warned that hiding the toggle frustrates tablet users, who often default to desktop view and rely on the toggle for mobile usability. Jagster illustrated this with screenshots comparing mobile and desktop layouts. Convinced, MihirR thanked the community and changed their mind. The consensus: the toggle is essential for user flexibility, especially for tablet users.
What is âswitching betweenâ if not âtogglingâ?
This is already done automatically.
I mean thereâs an option of mobile and desktop view, right? In which we can manually toggle, but when I log in through a mobile device do I still see that option? If yes, can I remove it and simple do it something like when itâs on desktop it will remain in desktop mode only and similarly with mobile view.
Majorly if you could let me know if thereâs a possibility to remove certain things like changing the theme and toggling between mobile and desktop.
As an admin? Use only one theme and donât use either components.
Desktop/mobile view is a personal choice whilst also automated, not an admin setting.
You can create a URL to set it, like so example.com?mobile_view=0 so maybe you could use nginx to redirect everyone to that?
You could also hide the toggle with CSS.
Iâm not sure why you would ever want to do this though?!
Just to keep minimalist, also thanks for the css thing I would work that way ![]()
Now I feel I should have used some common sense here ![]()
Thanks for the answer, it was indeed helpful.
donât hide that button, people on tablets will be very annoyed.
Unfortunately tablet users usually see the forum like desktop and not mobile (and I donât know why) so the toggle is mandatory for them.
I see, you changed my mind. Thank you!

