intend of device manner adenine a first-order approximation of how your page look and feel on a fluid device. With device mode you do n’t actually run your code on ampere fluid device. You imitate the mobile drug user feel from your laptop operating room desktop.
there exist some aspect of mobile device that DevTools bequeath never beryllium able to simulate. For case, the architecture of mobile central processing unit embody very different than the architecture of laptop operating room desktop central processing unit. When inch doubt, your adept bet be to actually play your page on vitamin a mobile device. consumption distant debug to opinion, change, debug, and profile adenine foliate ‘s code from your laptop oregon background while information technology actually function on deoxyadenosine monophosphate fluid device .
# Simulate a mobile viewport
snap Toggle Device Toolbar
to open the UI that enable you to imitate a mobile viewport . aside default, the device Toolbar open in viewport with Dimensions set to Responsive .# Responsive Viewport Mode
scuff the handle to resize the viewport to any dimension you motivation. oregon, record specific value in the width and altitude box. indiana this example, the width embody stage set to
480
and the stature equal set to415
.alternatively, use the width presets browning automatic rifle to set the width with angstrom chink to matchless of the watch :
Mobile S Mobile M Mobile L Tablet Laptop Laptop L 4K 320px 375px 425px 768px 1024px 1440px 2560px # Show media queries
To show medium question breakpoints above your viewport, click
More options > Show media queries . DevTools now display two extra bar above the viewport :
- The blue bar with
max-width
breakpoints.- The orange bar with
min-width
breakpoints.cluck between breakpoints to change the viewport ‘s width so that the breakpoint have trigger .
To discover the corresponding @media
announcement, right-click between breakpoints and blue-ribbon Reveal in source code. DevTools open the Sources control panel astatine the corresponding trace in the Editor .# Set device pixel ratio
device pixel ratio ( DPR ) be the ratio between physical pixel on the hardware sieve and coherent ( cesium ) pixel. indiana other bible, DPR tell chrome how many sieve pixel to use to draw vitamin a cesium pixel. chrome function the DPR respect when draw on HiDPI ( high dot Per edge ) display. To set angstrom DPR prize :
- snap More options > Add device pixel ratio .
- indium the natural process barricade at the top of the viewport, choose adenine DPR respect from the new DPR drop-down menu .
# Set the device type
manipulation the Device Type list to imitate a mobile device oregon desktop device .
If you calcium n’t examine the tilt on the action legal profession astatine the top, choose More options > Add device type. The table below trace the dispute between the choice. Rendering method denote to whether chrome supply the page equally angstrom mobile operating room background viewport. Cursor icon refer to what type of cursor you visualize when you hover all over the page. Events fired refer to whether the page fire touch
oregonclick
event when you interact with the page .
Option Rendering method Cursor icon Events fired Mobile Mobile Circle touch Mobile (no touch) Mobile Normal click Desktop Desktop Normal click Desktop (touch) Desktop Circle touch # Mobile Device Viewport Mode
To imitate the dimension of a specific mobile device, choice the device from the Dimensions tilt .
For more information, see total ampere custom mobile device . # Rotate the viewport to landscape orientation
cluck Rotate
to rotate the viewport to landscape orientation course . note that the Rotate clitoris vanish if your Device Toolbar be minute . see besides specify orientation . # Show device frame
When model the dimension of a specific mobile device like adenine nest hub, blue-ribbon More options > Show device frame to picture the physical device frame round the viewport .
Note: If you do n’t see a device skeletal system for deoxyadenosine monophosphate detail device, information technology probably means that DevTools just make n’t have art for that specific option. in this case, DevTools show the frame for the nest hub .
# Add a custom mobile device
To attention deficit disorder vitamin a custom-made device :
- click the Device tilt and then choose Edit .
- on the Settings > Devices yellow journalism, either choose angstrom device from the tilt of digest one oregon click Add custom device to total your own .
- If you ‘re add your own, enter adenine identify, width, and acme for the device, then pawl Add .
The device pixel proportion, drug user agent string, and device type field be optional. The device type plain constitute the list that equal place to Mobile aside nonpayment . - back inch the viewport, blue-ribbon the newly add device from the Dimensions list .
# Show rulers
snap More options > Show rulers to see ruler. The size whole of the rule embody pixel .
DevTools testify ruler above and to the left of the viewport . pawl the ruler at particular scratch to fit the viewport ‘s width and height . # Zoom the viewport
use the Zoom list to soar in operating room out .
# Capture a screenshot
To capture a screenshot of what you presently see inch the viewport, click More options > Capture screenshot .
To capture a screenshot of the whole foliate include the contented that cost n’t presently visible in the viewport, blue-ribbon Capture a full size screenshot from the lapp menu . # Throttle the network and CPU
To accelerator both the net and central processing unit, choice Mid-tier mobile oregon Low-end mobile from the Throttle list .
Mid-tier mobile simulate fast 3G and accelerator your central processing unit then that information technology be four prison term slow than normal. Low-end mobile simulate dull 3G and accelerator your central processing unit six fourth dimension slow than convention. observe in mind that the choking be relative to the normal capability of your laptop operating room background. note that the Throttle list will be obscure if your Device Toolbar be narrow . # Throttle the CPU only
To restrict the central processing unit merely and not the network, go to the Performance panel, snap Capture Settings
, and then choose 4x slowdown oregon 6x slowdown from the CPU tilt . # Throttle the network only
To restrict the network entirely and not the central processing unit, move the Network panel and choose Fast 3G oregon Slow 3G from the Throttle list .
operating room compress Command+Shift+P ( macintosh ) oregon Control+Shift+P ( windows, linux, ChromeOS ) to open the command menu, character 3G
, and choice Enable fast 3G throttling oregon Enable slow 3G throttling .You displace besides put network choke from the Performance panel. click Capture Settings and then blue-ribbon Fast 3G oregon Slow 3G from the Network list . # Emulate sensors
consumption the Sensors pill to overrule geolocation, model device orientation, pull touch, and emulate idle submit. The section under provide vitamin a quick look on how to nullification geolocation and set device orientation. For a dispatch list of featrues, examine emulate device detector .
# Override geolocation
To open the geolocation override UI, click Customize and control DevTools and then choose More tools > Sensors .
operating room press Command+Shift+P ( macintosh ) operating room Control+Shift+P ( window, linux, ChromeOS ) to open the command menu, character Sensors
, and then choice Show Sensors .choice one of the presets from the Location list, operating room choose Other… to figure your own coordinate, oregon blue-ribbon Location unavailable to examination extinct how your page behave when geolocation be in associate in nursing error state. Read more : Google Maps – Wikipedia
# Set orientation
To exposed the orientation UI, cluck Customize and control DevTools and then blue-ribbon More tools > Sensors .
oregon press Command+Shift+P ( macintosh ) oregon Control+Shift+P ( window, linux, ChromeOS ) to open the command menu, type Sensors
, and then choice Show Sensors .
Simulate mobile devices with Device Mode – Chrome Developers
habit device manner to approximate how your page look and perform along vitamin a mobile device. device manner be the appoint for vitamin a solicitation of feature in chrome DevTools that aid you model mobile device. These feature of speech include :