Skip to main content

Simulate A Mobile Device With Chrome's Developer Tools

The device toolbar in Chrome DevTools allows you to test responsive designs while working on a desktop computer. You can also test touch interactions and load pages with a custom user agent.

Read this article to learn how to enable device simulation in Chrome and what you can do with it.

What is device mode in Google Chrome?

The device mode feature in Chrome's developer tools allows you to load a website from your device as if it was accessed from another device. For example, Chrome can simulate:

  • The viewport width and height
  • The user agent sent by the browser
  • Touch interactions

This functionality makes it a lot easier to test mobile websites during development.

How to enable device simulation in Chrome DevTools

Follow these steps to open the device toolbar and enable device mode:

  1. Right-click on the page
  2. Select Inspect in the dropdown
  3. Click the device icon to the left of the Elements tab

Enable device simulation in Chrome

You can now view the mobile version of the website you're on as if you were accessing a phone to access it.

Chrome device mode screenshot

Selecting a specific device in the toolbar

Open the dimensions dropdown to enable emulation for a specific device.

Device dropdown in Chrome device mode

After selecting a device you'll see that Chrome now sends a different user agent, in this case telling the server that the website is being accessed by an iPhone. You can view this in the DevTools Network tab.

Simulated user agent in Chrome DevTools

Configuring custom devices

Device simulation in Chrome DevTools also lets you specify custom device types with a specific viewport size and user agent. You can also enable or disable touch interactions or specify a screen resolution with the devicePixelRatio value.

To edit devices, open the Dimensions dropdown and select Edit.

Custom devices in Chrome DevTools

Using the responsive viewport setting

With the Responsive mode enabled in the Dimensions selector you can drag the sides of the rendered viewport to change the width or height of the test device.

Chrome also shows a number of default viewport widths like "Mobile L" at the top of the screen. Click here to set the width of the viewport to the selected value.

Selecting media query breakpoints in DevTools

View media queries on your website

To view what CSS media queries are configured on your website, click the three dots on the right of the device toolbar and then select Show media queries.

Configuring device toolbar settings

Chrome will then start showing what viewport width breakpoints are defined by your website's stylesheets, including the conditions they apply to, like a min-width value.

Click on a media query to resize your device to match the breakpoint width.

Media queries in the device toolbar

Limitations of Chrome device emulation

Chrome's device mode adjusts some high-level properties of the device that's used to load the website. But fundamentally you're still loading the page in Chrome on a desktop device.

For example, if you emulate an iPad where Chrome normally uses a Safari WebView to display content, you'll still get the same browser features and behaviors of Chrome. If Safari does not support a feature that's used on your website, testing on the simulated device won't let you find out.

If you want more reliable data, test on a real device and connect the DevTools with remote debugging.

Test page speed on your mobile website

Use our free website speed test to measure page load time on your website. In addition to adjusting the viewport size we also simulated a slower CPU and throttle the network.

Mobile website test result

The test results provides a detailed breakdown of what resources are loading on your website and how long they take to load. You can then use this information to optimize your website performance.

Illustration of a website speed test reportIllustration of a website speed test report

Run A Free Page Speed Test

Test Your Website:

  • No Login Required
  • Automated Recommendations
  • Google SEO Assessment