Problem

You are on a desktop browser and you want to check the mobile version of a contao website.

Solution

Simply append ?toggle_view=mobile to the current URL to tell Contao that it should switch to the mobile mode.

Discussion

Normally, Contao automatically decides which rendering mode (desktop or mobile) to chose. However, when you are browsing a mobile site on your desktop computer and want it to be rendered in mobile mode because you want to make some debugging or are simply curious, there is a GET parameter that you can add to the current URL to make Contao switch to the mobile mode.

Example:

http://example.com/test.html?toggle_view=mobile