How to view Mobile Version of a Website on Chrome
By Jash Unadkat, Technical Content Writer at BrowserStack - May 10, 2021
Web developers have to test websites on specific browsers to ensure the site’s compatibility with said browser’s specifications. Tests are run repeatedly during development to help them verify how every change to the codebase reflects in the browser. This process ensures that web developers are optimizing their sites for the real world.
However, developers must bear in mind that 56.16% of all web traffic came through mobile phones. As a result, they need to ensure that websites are well-optimized to run on mobile browsers. Chrome is indisputably the leading mobile browser with a current market share of 64.73% worldwide. Hence testing mobile versions of websites on Chrome is crucial.
This article aims to explain how developers can open a website’s mobile view in Chrome browser via desktop. It also explains how one can test websites on real mobile devices online.
First, let’s understand how users can instantly view the mobile version of any website.
Using Device Simulation in Chrome DevTools for Mobile View
Users can view the mobile version of a website by using Chrome Devtools.
Listed below are the steps to view the mobile version of a website on Chrome:
- Open DevTools by pressing F12.
- Click on the “Device Toggle Toolbar” available. (Icon turns blue when the device mode is turned on)
- Choose a device you want to simulate from the list of iOS and Android devices.
- Once the desired device is chosen, it displays the mobile view of the website.
Note: This approach just lets you simulate different viewports on your desktop browser. However, this is not the most accurate way to test the mobile version of a website on Chrome, as it is just a device simulation. It cannot simulate all aspects of a real mobile device.
For web developers to gain accurate test insights, extensive testing on real devices is non-negotiable. It enables them to verify websites in real user conditions.
BrowserStack’s Real Device Cloud for Live Testing
The ideal way to test a website is to test it on a real device. This helps developers monitor websites on mobile browsers that are installed on real Android and iOS devices. By doing so, QAs can evaluate how a website performs across multiple mobile devices and browsers in the real world.
BrowserStack’s real device cloud provides 2000+ real devices and browsers to test on.
A few of its highlights:
- Latest Android devices from Samsung, Oneplus, Google and Motorola
- Latest Apple devices like iPhone X, iPhone 11 Pro
- Multiple versions of leading browsers like Chrome, Firefox, Safari, Opera installed on real devices
QAs can test on any real Android or iOS mobile device directly from their browser. They do not have to download any browsers or emulators. To open a mobile version of a website on Chrome, QAs can simply log in, select the device-browser-OS combination and start testing. The image below is an exact representation of a live testing session (Chrome Browser Testing on Samsung S10+) on BrowserStack.
BrowserStack also provides the following features :
- Upfront access to DevTools that enables inspection of web elements on the page
- Geo-location testing
- Integrations with popular bug reporting tools like Jira, Trello, and Slack
- Testing of features like pinch to zoom and device rotation
The methods explained above can help developers eliminate their pain points while debugging any issue. These methods also help optimize a website’s performance across multiple devices. Knowing how to open a website’s mobile view in Chrome is an essential part of a QA engineer’s skillset, and this article will help them with mastering this skill.