I want to test the mobile version of a website using Google Chrome for Desktop.

Usually I'm able to load mobile sites by prefixing m. before the URL, but trying to load m.superuser.com or m.github.com just results in a "Site cannot be reached" error.

How can I test the mobile version of a website in Chrome for Desktop?

up vote 15 down vote accepted

You can use Google Chrome's developer tools to request the mobile version of a website:


  1. Open Chrome's developer tools with F12.
  2. Click the 'Toggle device toolbar' button to turn Device Mode on or off. (Icon is blue when Device Mode is on).

    Enabling device mode

  3. (Optional) Select which mobile device you want to simulate with the 'Viewport controls'.

    Viewport controls

  4. Refresh the webpage with device mode enabled to allow the mobile version to load.

    Viewing mobile site for Super User

Sources

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.