How to see the mobile version of a website on your computer
Want to check how a page looks on a phone without picking one up? Every desktop browser has a phone view built in. It takes one keyboard shortcut in Chrome, Edge and Firefox, and one setting plus a shortcut in Safari. Here are the steps for each, and what to do when a site keeps showing its desktop layout anyway.
The quick answer
- Chrome or Edge: press F12 to open DevTools, then Ctrl+Shift+M (on a Mac, ⌘+Option+I, then ⌘+Shift+M). Pick a phone from the list at the top.
- Firefox: press Ctrl+Shift+M (on a Mac, ⌘+Option+M). No need to open the developer tools first.
- Safari on a Mac: turn on the Develop menu once (Settings, Advanced, Show features for web developers), then press Control+⌘+R.
- Still seeing the desktop site? The site is probably checking which browser you use. Pick a named phone (Firefox) or set a phone user agent (Chrome and Edge), then reload.
Chrome: turn on the device toolbar
Chrome calls its phone view device mode, and the bar that controls it is the device toolbar.
- Open the page you want to check.
- Open DevTools: press F12 or Ctrl+Shift+I on Windows and Linux, or ⌘+Option+I on a Mac. You can also right-click the page and choose Inspect.
- Click the phone-and-tablet icon (Toggle device toolbar) in the bar at the top of DevTools, or press Ctrl+Shift+M (⌘+Shift+M on a Mac) while DevTools is open.
- The page shrinks to a phone-sized frame. Use the Dimensions list at the top to choose a specific phone, or leave it on Responsive and drag the edges.
To leave phone view, press the same shortcut again or close DevTools.
Pick a phone, a width or a rotation
In Responsive mode, the bar above the page has quick widths you can click: Mobile S (320 px), Mobile M (375), Mobile L (425), Tablet (768), Laptop (1024), Laptop L (1440) and 4K (2560). Popular phones such as the iPhone 14 (390 px wide) and Pixel 7 (412 px) sit between the 375 and 425 marks, so those two are good ones to check first.
A few more controls are worth knowing:
- Rotate flips the frame to landscape. The button hides when the toolbar is narrow, so widen DevTools if you can’t find it.
- Device type decides whether Chrome lays the page out as a phone or a desktop, and whether your clicks act as taps. Choose Mobile for a normal phone check.
- Show device frame (under the three-dot menu on the toolbar) draws the phone around the page, for devices Chrome has a picture of.
- Edit at the bottom of the Dimensions list lets you add any phone that isn’t listed: give it a name, a width and a height, and optionally a pixel ratio and user agent.
Edge: the same tool with a different button
Edge runs on Chromium, the code Chrome is made from, so the shortcuts match: F12 opens DevTools, and Ctrl+Shift+M (⌘+Shift+M on a Mac) turns the phone view on and off. The button is called Toggle device emulation, and you can also reach it from the ... menu inside DevTools, under Device Emulation. Everything else, from the phone list to rotation, behaves the way it does in Chrome.
Firefox: Responsive Design Mode
Firefox has the quickest route. Press Ctrl+Shift+M on Windows and Linux or ⌘+Option+M on a Mac, and the page drops into a 320 by 480 frame. You can also find Responsive Design Mode under Browser Tools in the Firefox menu.
- Click the device name above the page (it starts as “no device selected”) to pick a phone. Firefox matches that phone’s screen size, pixel density and touch input.
- Edit the width and height boxes, or drag the bottom-right corner, for any other size.
- The touch button turns your mouse into a finger, so a drag becomes a swipe.
- The camera button saves a screenshot of the phone-sized view.
Firefox remembers the device and orientation you used, so it opens the same way next time.
Safari on a Mac: Responsive Design Mode
Safari hides its developer tools until you turn them on:
- Choose Safari, then Settings, and open the Advanced tab.
- Tick Show features for web developers. A Develop menu appears in the menu bar.
- On the page you want to check, choose Develop, then Enter Responsive Design Mode, or press Control+⌘+R.
Pick a size from the presets, rotate it, or drag the handles on the sides. Apple points out that the presets are close but not exact, because a real iPhone also has an address bar and a keyboard that take up room. For a truer look, the same screen can open the page in an iPhone or iPad simulator, which comes with Apple’s Xcode app.
When the site still shows the desktop version
Most sites today are responsive: they read the width of the screen and rearrange themselves, so a narrow frame is all they need. Some older sites and some big ones choose a layout before the page even loads, based on the user agent, a line of text your browser sends with every request saying what browser and device it is. Shrink the window all you like, and those sites still see a desktop browser.
The fix is to send a phone’s user agent, then reload:
- Firefox: picking a named phone does this for you. Choose an iPhone and Firefox presents itself as Safari on that iPhone.
- Chrome and Edge: in DevTools, open the three-dot menu, then More tools, then Network conditions. Under User agent, untick Use browser default and choose a phone from the list. Reload the page.
Switch the user agent back to the browser default when you’re done.
A few sites still keep a whole separate mobile site at an address that starts with m., such as m.example.com. If you know a site has one, you can simply open that address on your computer.
What a phone view on your computer can’t show you
Google describes device mode as a “first-order approximation”: close enough to catch layout problems, not a perfect copy of a phone. Three things to keep in mind:
- Speed. Your computer’s processor is far faster than a phone’s, and DevTools can’t copy a phone’s chip. A page that feels quick here can still be slow in your hand. The throttling options in Chrome, Edge and Firefox slow the page down, but only roughly.
- The phone’s own browser bars. A real phone loses space to the address bar and the keyboard, which can push buttons out of view.
- Real touch. Simulated taps use your mouse pointer, which is far more precise than a thumb. If a button is hard to hit on a real phone, the phone view won’t show it.
So use the phone view for quick checks, and look at anything important on a real phone before you call it done.
If it’s your own site: three things to check
- The viewport tag. Without a viewport meta tag, phones draw the page at desktop width and shrink it down. My free meta viewport auditor checks yours, including settings that block zooming.
- Sideways scroll. At 320 and 375 px wide, scroll down the whole page and make sure nothing pushes it wider than the screen.
- Tap targets and text. Buttons should be easy to hit with a thumb, and body text shouldn’t need pinching to read.
Frequently asked questions
How do I switch to mobile view in Chrome?
Press F12 to open DevTools, then press Ctrl+Shift+M (Command+Shift+M on a Mac) or click the phone-and-tablet icon. Choose a phone from the Dimensions list at the top of the page.
What is the shortcut for the Chrome device toolbar?
Ctrl+Shift+M on Windows, Linux and ChromeOS, or Command+Shift+M on a Mac. It works while DevTools is open; press it again to turn the phone view off.
Why does a website still show the desktop version in mobile view?
The site likely picks its layout from your browser’s user agent rather than the screen width. Pick a named phone in Firefox, or set a phone user agent under Network conditions in Chrome or Edge, then reload.
Can I see the mobile version of a site without developer tools?
Sometimes. Dragging the window narrower works on responsive sites, and some sites have a separate mobile address starting with m. For sites that check the user agent, you need DevTools or an extension that changes it.
Is the phone view on my computer the same as a real phone?
No. It matches the screen size and layout, but not a phone’s processor speed, its browser bars or the feel of a real thumb. Check anything important on a real phone.