To capture a mobile website at several device pixel ratios (DPRs), keep the CSS viewport dimensions fixed and capture the page once at each DPR. In Chrome DevTools, change the DPR in Device mode and save a screenshot for each setting. For repeatable batches, use Playwright contexts with a chosen deviceScaleFactor and screenshot scale. The distinction matters: viewport dimensions affect responsive layout; DPR affects emulated pixel density and, when using device-scale output, image dimensions.
Viewport size and DPR control different things
A viewport is the page’s layout area, measured in CSS pixels. DPR relates physical display pixels to CSS pixels. To test how a layout responds to screen width, change the viewport. To test raster output at different pixel densities, hold the viewport constant and change DPR.
Screenshot output also has a scale choice. At CSS scale, an image has roughly one image pixel per CSS pixel. At device scale, it has roughly one image pixel per device pixel. For example, a 390 CSS-pixel-wide viewport at DPR 2 ordinarily yields an image about 780 pixels wide at device scale, subject to browser rounding and capture details. At CSS scale, it remains about 390 pixels wide. See the Playwright screenshot API parameters.
Capture a few screenshots with Chrome DevTools
- Open the page in Chrome and open DevTools. Toggle the Device Toolbar.
- Choose Responsive or a device preset. Enter the target width and height in CSS pixels.
- Open More options → Add device pixel ratio if the DPR control is not visible, then select the DPR you want.
- If needed, enable mobile device type to emulate mobile rendering and touch events. This remains browser emulation, not a real handset.
- Open More options → Capture screenshot for the visible viewport, or choose Capture a full size screenshot to include the full page.
- Change only the DPR and capture again when isolating density effects. Name files with the page, dimensions, DPR, browser, and orientation—for example,
home-390x844-dpr2-chromium-portrait.png.
Chrome’s Device mode guide describes this as a first-order approximation: Device mode does not actually run the code on a mobile device. Use a physical handset to verify device-specific rendering, performance, or interaction behavior.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →#1 Best Overall
- 【Strong Adsorption】The inspiration of the silicone phone suction case comes from the adhesive force of the octopus. Each suction cup phone mount is 3.15 inches long and 2.17 inches wide, with 24 independent suction cups providing a stronger and more stable suction force, so you don't have to worry about your phone falling during use.
- 【Back of Phone Suction Grip】Remove the adhesive film on the phone suction cup and stick it on the phone case. You can then fix the phone on any smooth surface, which is very convenient. (The phone suction cup cannot be removed and reused after being attached to the phone case. It is recommended to attach it to a regular phone case, not a valuable one.)
- 【Widely Used】Our non-slip silicone phone sticky grip mount attaches to almost any flat phone case and make it compatible with common mobile phones such as iPhone and Android.You can shoot, watch videos or video calls in the kitchen, gym, dance studio, bathroom and other places.
- 【Capture the Wonderful Picture】Whether you are a TikTok creator or just like to share videos and photos, this phone suction cup can help you hands-free capture wonderful videos and photos for sharing with friends.
- 【Note】You can fix the phone suction cup on a smooth surface such as a mirror or glass. If necessary, wipe the suction cup with a damp cloth to obtain stronger suction. Before releasing your hand, make sure the phone is firmly fixed. (Not applicable to rough walls, wooden surfaces, and other uneven surfaces)
Automate a DPR matrix with Playwright
Create a fresh browser context for each viewport/DPR combination. The following Node.js example assumes Playwright is installed and a Chromium browser has been launched; it captures one viewport at DPR 1, 2, and 3 as device-scale PNGs.
const url = 'https://example.com';
const browser = await chromium.launch();
for (const dpr of [1, 2, 3]) {
const context = await browser.newContext({
viewport: { width: 390, height: 844 },
deviceScaleFactor: dpr,
isMobile: true,
hasTouch: true,
});
const page = await context.newPage();
await page.goto(url, { waitUntil: 'networkidle' });
await page.screenshot({
path: `mobile-390x844-dpr${dpr}.png`,
scale: 'device',
});
await context.close();
}
await browser.close();
Add this import if the surrounding script does not already define chromium: const { chromium } = require('playwright');. For a CSS-pixel-sized artifact, use scale: 'css'. Add fullPage: true when the deliverable should cover the full scrollable page; very long pages can produce unusually tall output and may not behave exactly like ordinary scrolling.
Rank #2
- SUPERIOR COMFORT — Unlike traditional circular ear buds, the design of EarPods is defined by the geometry of the ear. Which makes them more comfortable for more people than any other ear bud–style headphones.
- HIGH-QUALITY AUDIO — The speakers inside EarPods have been engineered to maximize sound output and minimize sound loss, which means you get high-quality audio.
- BUILT-IN REMOTE — EarPods with USB-C plug also include a built-in remote that lets you adjust the volume, control the playback of music and video, and answer or end calls with a pinch of the cord.
- COMPATIBILITY — Works with all devices that have a USB-C port.
- INTEGRATED MICROPHONE — A built-in microphone precisely captures your voice while you’re on the phone, taking a FaceTime call, or summoning Siri — so you’re always heard loud and clear.
Playwright’s emulation documentation covers context device settings. Device descriptors can supply viewport, user-agent, and touch settings when they match the target; set values explicitly when you need a controlled DPR matrix rather than a particular device profile.
Choose viewport and DPR values for the question you are testing
- For DPR comparisons, keep width, height, browser, page state, and capture scope the same while changing DPR.
- For responsive layout testing, use CSS viewport widths that exercise your site’s actual breakpoints. There is no universal DPR or viewport list that covers every site.
- If both layout and density matter, vary viewport and DPR independently so you can tell which change caused a difference.
- Include at least one low-density and one high-density setting when the goal is explicitly multi-DPR comparison. Add intermediate values only if they reflect your test requirements.
- Use device-scale output when you need pixels corresponding to emulated device pixels; use CSS scale when consistent CSS-pixel dimensions are more useful.
Make captures useful for visual comparisons
Wait for meaningful content, not just an arbitrary delay. Confirm fonts and images are ready, use a consistent scroll position, and control animations, blinking carets, timestamps, rotating content, and other changing elements. Playwright supports screenshot styling controls for dynamic content and caret behavior; use them carefully so the stylesheet does not hide content you need to inspect. See Playwright’s visual comparison guidance.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Rank #3
- Secure Hold: Our PopSockets adhesive phone grip gives your cell phone a secure, comfortable hold in hand to help prevent drops while texting, taking photos, or scrolling on the go. Designed to stick firmly to most phone cases and devices.
- Hands-Free Made Easy: Easily turn your PopSocket into a phone stand to prop up your phone anywhere, perfect for watching videos, video calls, or following recipes. A must-have phone holder that keeps your device secure and ready for anything.
- Compatibility: Works with all phones, tablets, and Kindles. Sticks best to smooth, hard plastic cases and may not adhere to silicone or textured cases. Easily swap your PopTop to change up your style.
- Black PopSockets: Simple, refined, and endlessly versatile. A timeless essential for any phone.
- Travel Must-Have for People On the Go: A must-have travel accessory for flights, flying, airports, air travel, airplanes, planes, international trips, cruises, and long travel days. Key gadget for your airport haul, travel accessories and must-haves.
Keep baseline and comparison captures in the same environment. Playwright notes that operating system, browser version, settings, hardware, power source, and headless mode can affect rendering. Record browser and version, operating system, viewport, DPR, orientation, screenshot scale, full-page status, and relevant emulation flags with each image. Differences across environments can reflect fonts or antialiasing rather than a website change.
Common problems and fixes
- The image is much wider than the viewport. Device-scale output multiplies CSS dimensions by DPR. Use
scale: 'css'for CSS-pixel dimensions, or retain device scale if the larger raster is intentional. - The page layout changes between DPR captures. Check that the viewport dimensions and other emulation settings stayed fixed. DPR is not a substitute for changing viewport width.
- The full-page image is unexpectedly tall or differs from a scrolled page. Full-page capture includes content beyond the viewport and can behave differently from normal scrolling. Try a viewport capture or inspect the page in sections if a single extremely tall artifact is unsuitable.
- Screenshots differ even though the page code did not change. Stabilize browser and operating-system versions, fonts, page state, animation, and other dynamic content; compare in the same environment as the baseline.
- The capture looks mobile but does not match a handset. Device emulation is an approximation. Verify platform-specific behavior and performance on physical devices.
- Content is missing or still loading. Wait for the relevant selector, fonts, and images rather than relying solely on a fixed timeout; check whether network-idle waiting is appropriate for a page with continuing network activity.
Or skip the browser setup
ScreenshotNeo can capture a URL through one API call; its options include viewport and device scale settings. For example, this cURL request saves a WebP screenshot of a page at a 390 × 844 viewport and DPR 2:
Rank #4
- [360 ° Flexible Rotation Design] Comes with a rotatable lanyard ring that supports 360 ° free rotation, effectively solving the problem of twisted and tangled lanyards
- [Wide compatibility] The ultra-thin 0.02-inch design does not block the charging port at all, and both wired and wireless charging can be used directly without removing the pad. Compatible with most smartphones such as iPhone, compatible with various wristbands, lanyards, crossbody straps, and keychains
- [Durable and Portable Material] Premium rust-resistant stainless steel material with good flexibility, which not only avoids scratching the phone case, but also has excellent anti rust and anti fading performance
- [Multi scenario Practical] Paired with a lanyard or wristband, hands-free use can be achieved. The phone is within reach and not easily dropped, ideal for daily commuting and outdoor activities. Suitable for full coverage phone cases, does not support half coverage phone cases
- [Quality Service] If you find any damage or other issues with the product upon receipt, please contact us immediately. We will handle it quickly
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -d width=390 -d height=844 -d device_scale_factor=2 -o shot.webp
See the ScreenshotNeo API documentation for parameter details. ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, with response headers indicating the page verdict and billing status. Its MCP server gives AI agents tools for screenshots and page information. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.
Frequently Asked Questions
Does increasing DPR change the website’s CSS layout?
Not by itself in this workflow: CSS viewport dimensions control the layout width and height, while DPR controls emulated pixel density. Keep the viewport fixed to isolate DPR effects.
Best Value
- 【PKYAA Double Sided Silicone Suction Phone Case Mount】PKYAA With Double Sided 40 Strong and Reliable individual suction cups, PKYAA provides a thicken and upgraded universal silicon suction mount for your phone.
- 【Friendly to Content Creators】If you are a content creator or an online influencer, you can create videos anywhere with this suction mount completely hands free with this silicone cell phone mount for cases.
- 【HANDS-FREE & Adhere to Mirrors】This Double Sided silicone suction phone case mount allows you to stick your phone to the mirror easily. No longer holding your phone in one hand to watch video tutorials while making up.
- 【Strong Grip on the Smooth Surface】You can easily hang your phone anywhere with a smooth surface. All you do is you clean off your phone and smooth surface. It is STURDY and it not only sticks to mirrors, it also sticks to windows, it sticks to refrigerators, tiles and other clean, flat surfaces.
- 【Press Down Firmly Every 30 Minutes】Use your palm or fingers to press the phone down firmly and check it's secure before letting go. Apply even pressure for a few seconds to allow the suction cup to adhere properly. To maintain the grip and prevent accidental falls, it's a good practice to periodically reapply pressure to the suction cup.
Should I use a device preset or explicit emulation values?
Use a preset when its viewport and device characteristics match your target. Set viewport, DPR, and mobile/touch flags explicitly for a controlled matrix.
Do DevTools or Playwright screenshots prove how a real phone behaves?
No. They emulate browser conditions. Test on physical devices for handset-specific rendering, performance, or interaction.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

