How to view Mobile Version of a Website on Chrome
By Jash Unadkat, Technical Content Writer at BrowserStack - March 20, 2020
Web developers often test a website on a specific browser (for example, Chrome) repeatedly during the development phase. This helps them verify how every change to their codebase reflects in the browser. This process ensures that web developers are optimizing their sites for the real world.
However, developers must also bear in mind that 52% of total web traffic comes from mobile devices. As a result, they need to ensure that their websites are well-optimized to run on mobile browsers. Chrome is indisputably the leading mobile browser with a current market share of 61.2% worldwide. Hence testing mobile versions of websites on Chrome is crucial.
This article aims to explain how developers can view the mobile version of a website on Chrome via desktop. It also explains how one can test websites on real mobile devices.
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 on any mobile device is to actually test it on a real device. This helps developers monitor their 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. 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.