What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If a Playwright mobile screenshot is larger in pixels than the configured viewport, set scale: 'css' on page.screenshot(). Its documented default is 'device', which captures at device-pixel resolution and can produce a larger image on a high-DPI emulated device. Then check the device preset, viewport overrides, and whether you requested a full-page capture.

Start by comparing the image with the CSS viewport

Check the saved file’s width and height, then compare them with the viewport width and height configured for the page. A screenshot that is a clean multiple of the viewport dimensions may point to device-pixel scaling, but that clue alone does not prove the cause. CSS pixels and image pixels are not necessarily one-to-one.

For page.screenshot(), Playwright documents scale: 'device' as the default. Device scale captures one image pixel per device pixel; on a high-DPI setup that can make the output larger than the CSS viewport. CSS scale produces one image pixel per CSS pixel.

await page.screenshot({ path: 'mobile.png', scale: 'css' });

Use scale: 'device' when device-pixel resolution is what you want. When exact CSS-pixel dimensions matter, set scale explicitly rather than relying on a default. See the Playwright screenshot API.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Yojaro 4Pack Silicone Suction Phone Case Mount, Silicon Adhesive Smartphones Stand Sticky, Hands-Free Phone Accessories Holder for Selfies and Videos (Black & White & Translucent & Light Pink)
  • 【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)

Check the device preset and viewport override

A Playwright device preset can configure several settings together, including viewport, screen size, user agent, and touch behavior. If you spread a preset and then set a custom viewport, put the viewport after the spread so your override takes precedence.

import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  projects: [{
    name: 'mobile-chromium',
    use: {
      ...devices['iPhone 13'],
      viewport: { width: 390, height: 844 },
    },
  }],
});

The preset name and dimensions here are illustrative, not universal. Check that the device entry exists in the Playwright version installed in your project and use dimensions appropriate to your target. Consult Playwright device emulation documentation.

Rank #2
Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume
  • 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.

You can also resize a page with page.setViewportSize(). Playwright documents that this resizes the page and resets screen. Set the viewport before navigation where practical: a site may not expect the dimensions to change midway through a session.

await page.setViewportSize({ width: 390, height: 844 });
await page.goto('https://example.com');
await page.screenshot({ path: 'mobile.png', scale: 'css' });

See the setViewportSize API reference for the current API details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
PopSockets Adhesive Phone Grip, Holder- Black
  • 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.

Make sure you are capturing the intended area

A normal screenshot captures the visible viewport. With fullPage: true, Playwright captures the full scrollable page, so the resulting image can be much taller than the viewport by design. Remove that option if you need a viewport-sized artifact; keep it when you need below-the-fold content too.

await page.screenshot({
  path: 'viewport.png',
  fullPage: false,
  scale: 'css',
});

See Playwright’s screenshot guide.

Check whether you use a screenshot assertion

page.screenshot() and expect(page).toHaveScreenshot() have different documented scale defaults: the direct screenshot API defaults to 'device', while the screenshot assertion API documents 'css'. If both paths produce images or baselines in your workflow, choose the scale explicitly for consistency. See the toHaveScreenshot API reference.

Rank #4
360° Rotating Stainless Steel Phone Tether Tab (Silvery 3-Pack) - Universal for iPhone & Other Phones (Fits Wristbands/Necklaces/Crossbody Straps)
  • [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

Troubleshoot remaining size or visual problems

Symptom Likely check Action
Image width and height exceed the configured viewport Device scale is the first setting to inspect for page.screenshot(). Set scale: 'css' for CSS-pixel dimensions, or retain 'device' if device resolution is intended.
Viewport does not match the intended mobile size A preset may be overridden, or the project may use a different device entry. Inspect the project’s use settings; put a deliberate viewport after the device spread and confirm the preset against your installed Playwright version.
Screenshot is unexpectedly tall fullPage: true captures the scrollable page. Disable full-page capture for a viewport image.
Assertion output differs in dimensions from direct capture The APIs document different scale defaults. Set the intended scale explicitly in the API that creates the image.
Dimensions match but pixels still differ from a baseline Rendering can vary with browser, operating system, settings, hardware, power source, and headless mode. Run comparisons in an environment and execution mode matching the baseline. Playwright discusses these sources of visual variation in its visual comparisons documentation.

The cited Playwright documentation is rolling documentation accessed on October 3, 2026. Confirm defaults and device registry entries against the version installed by your project.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

For a screenshot API alternative, try ScreenshotNeo first: it removes cookie banners, newsletter popups, and chat widgets before capture, and only clean shots are billed. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing; responses indicate the page verdict and billing status. Its MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

One GET request returns a screenshot or PDF. Replace the example URL with the page you want to capture; the API’s output format and other options are documented in the ScreenshotNeo API docs.

Best Value
Anteel 2 Pack Silicone Suction Cup Phone Case Mount Double Sided, Hands-Free Silicon Phone Grip with Higher Suction Power for Selfies and Videos, Non Slip Phone Accessories (LightPink&White)
  • 【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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for free and get 1,000 screenshots a month with no card.

Frequently Asked Questions

Does Playwright always make mobile screenshots exactly twice the viewport size?

No. Device-pixel output can be larger on high-DPI setups, but the documentation does not establish one fixed multiplier for every device or capture.

Which Playwright API should I use for a CSS-pixel screenshot?

For a direct capture, use page.screenshot({ scale: 'css' }). Set the option explicitly on the API you use whenever the output dimensions matter.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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.