October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Puppeteer Screenshots Differ from Chrome: Match Browser Settings

A practical sequence for diagnosing Puppeteer-versus-Chrome screenshot differences: align browser version and mode, viewport and device emulation, screen geometry, capture options, and page readiness.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If a Puppeteer screenshot looks different from Chrome, first make the comparison use the same browser build and mode, CSS viewport and device scale, screen dimensions, and screenshot options. Set the viewport before navigating, then compare the same page state. Changing CSS before checking those variables can mask the real difference.

Start by identifying which Chrome each screenshot uses

“Chrome” can mean a user-installed Chrome browser, Puppeteer’s bundled Chrome for Testing, regular headful Chrome, current headless Chrome, or the separate legacy headless shell. These are not automatically equivalent. Puppeteer says its headless: true mode uses current headless Chrome, while headless: 'shell' selects chrome-headless-shell, which does not completely match regular Chrome behavior. Puppeteer’s headless-mode guide explains the distinction.

As an Amazon Associate I earn from qualifying purchases.

Puppeteer v20 and later uses Chrome for Testing, and its headful and current-headless modes share a browser code path. Still, compare the actual browser versions instead of assuming the browser names imply identical builds. Check Puppeteer’s supported browser version mapping when pinning or upgrading.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Record the Puppeteer package version and the browser version used for each image.
  2. Record whether the reference is headful Chrome, current headless Chrome, or legacy headless shell.
  3. For a controlled baseline, use Puppeteer’s bundled browser and headless: true. If the reference is headful, make a separate comparison in headful mode.

Puppeteer permits selecting a Chrome channel or executable path, but its compatibility guarantee is for the bundled browser; see LaunchOptions. The old headless mode is now known as chrome-headless-shell and ships as a separate binary. Puppeteer: Headless mode.

#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Match the page viewport and device emulation before navigation

The page’s CSS viewport is separate from the outer browser window. Set width, height, and deviceScaleFactor explicitly before page.goto(), using the reference’s actual values rather than a convenient default. If the reference uses mobile emulation or touch, match isMobile and hasTouch too. Changing those properties can reload the page, so set them up front. See Page.setViewport().

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({ headless: true });
  try {
    const page = await browser.newPage();
    await page.setViewport({
      width: 1440,              // Replace with the reference CSS viewport width
      height: 900,              // Replace with the reference CSS viewport height
      deviceScaleFactor: 1,     // Replace with the reference device scale
      isMobile: false,
      hasTouch: false,
    });

    await page.goto('https://example.com', { waitUntil: 'networkidle2' });
    await page.screenshot({ path: 'puppeteer.png' });
  } finally {
    await browser.close();
  }
})();

This is a runnable starting point, not a universal 1440×900 recommendation. Replace the URL and dimensions with the exact test page and reference values. Puppeteer’s screenshot guide covers page screenshots and element captures.

Set browser screen size separately when the page depends on it

A page can inspect screen properties or respond to window geometry, so matching only the CSS viewport may not be enough. Puppeteer documents that headless mode uses a single 800×600 screen by default unless --window-size is supplied. The headless-only --screen-info option configures screen information. See Screen configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
const browser = await puppeteer.launch({
  headless: true,
  args: ['--window-size=1440,900'],
});

Use the reference’s window dimensions here; do not substitute this for page.setViewport(). A window-size flag controls browser geometry, while the viewport call sets the page’s emulated CSS viewport.

Make screenshot capture options identical

Two images can differ even when the page renders the same if one captures the viewport and the other captures the full page, a clip, or a different background or surface. Puppeteer’s documented screenshot defaults include fullPage: false, omitBackground: false, and fromSurface: true. Specify options explicitly when comparing; see ScreenshotOptions.

await page.screenshot({
  path: 'puppeteer.png',
  fullPage: false,
  omitBackground: false,
  fromSurface: true,
});
  • For viewport comparisons, use fullPage: false on both captures.
  • For full-page comparisons, use fullPage: true on both, and verify the page has finished loading content below the fold.
  • If using a clip, match its coordinates and dimensions. If transparency matters, match omitBackground.
  • Compare the capture surface and any element-specific capture method, not just the output file dimensions.

Wait for the same page state

A screenshot taken before fonts, images, animations, or asynchronous content settle can differ from one captured later. Use the same navigation and readiness conditions for both runs, then verify the visual elements in question have actually appeared. networkidle2 in the example is one possible navigation condition, not a universal guarantee: the appropriate wait depends on the site and its ongoing requests. Puppeteer documents the navigation and screenshot APIs, but no single wait strategy fits every website.

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Only after browser mode and version, emulation, screen geometry, capture options, and page state match should you investigate operating-system rendering, installed fonts, GPU/compositing, or color profiles. These are variables to reproduce and test—not default explanations for every mismatch. A reliable diagnosis needs the exact page, browser versions, operating system, fonts, and both images.

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

Use this comparison checklist

  • Browser: product/build, Puppeteer version, and browser version.
  • Mode: headful, current headless, or legacy headless shell.
  • Page emulation: CSS viewport width and height, device scale, mobile, and touch settings.
  • Screen and window: screen information and browser window dimensions where relevant.
  • Capture: viewport or full page, clip, background transparency, surface, and element capture.
  • Readiness and environment: page state, operating system, and relevant fonts.

Troubleshoot common mismatches

Layout breaks at different widths

Check the CSS viewport dimensions first. A matching outer window does not guarantee a matching viewport. Set it explicitly before navigation.

Text wraps differently or elements shift

Confirm browser builds and device scale, then check that web fonts have loaded and that both captures use the same operating-system and font environment. Do not assume headless mode alone explains the difference.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

Mobile view differs despite matching dimensions

Compare isMobile and hasTouch as well as width, height, and device scale. Set them before navigation because changing them can reload the page.

The screenshot is cropped or has a different background

Compare fullPage, clip settings, omitBackground, and capture surface. Make the options explicit rather than relying on defaults.

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

Content is missing or appears in a different state

Wait for the relevant images, fonts, animations, or asynchronous content. Match the page-ready condition between runs; network idleness alone may not establish that a particular visual element is ready.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Headless output still does not match headful Chrome

Confirm both browser versions and use current headless mode rather than headless: 'shell' for the baseline. If the reference is specifically headful, compare in headful mode too; do not expect a launch flag to guarantee pixel identity across different environments.

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

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. Its one-request API can return an image or PDF; its screenshot behavior and parameters are documented at ScreenshotNeo documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

ScreenshotNeo accepts cookie/consent banners and removes known consent platforms, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, with response headers indicating the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.

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

Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Does setting the viewport also set the browser window size?

No. The viewport and browser screen/window geometry are separate settings; set each explicitly when the page depends on both.

Which Puppeteer headless mode should I use for a comparison with Chrome?

Use current headless mode, headless: true, for the first baseline. Legacy headless: 'shell' uses a separate browser binary and is not interchangeable for pixel comparisons.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.