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

Set a mobile viewport—or emulate a named Android device—before navigating, then capture the page with page.screenshot(). There is no single universal Android viewport: choose a device profile or specify the CSS dimensions you need. Puppeteer’s device emulation applies device metrics and a user agent; it does not verify rendering on physical Android hardware.

Choose a device profile or explicit viewport

Use a named profile when you want Puppeteer’s supplied device metrics and user agent together. Use page.setViewport() when you need to state and control the CSS width and height yourself. Puppeteer’s current documentation surfaced API pages for versions 25.11.0 and 25.12.0; check the documentation matching your installed version if an option behaves differently.

Approach What it configures Best when
page.emulate(KnownDevices['Pixel 7']) The selected profile’s device metrics and user agent You want to target a named Puppeteer device profile without specifying each value manually.
page.setViewport({...}) The width, height, and any mobile or touch settings you provide You know the CSS viewport your test or capture should use and want those values explicit.

The dimensions in an explicit viewport configuration are project choices, not universal Android standards. Choose dimensions for the device or layout you intend to represent and record them with the screenshot.

Capture a viewport-sized screenshot

Install Puppeteer in a Node.js project with npm install puppeteer. The following ES module example uses the Pixel 7 profile. To use explicit viewport dimensions instead, uncomment the setViewport() block and remove or comment out the emulate() line.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
import puppeteer, { KnownDevices } from 'puppeteer';

const browser = await puppeteer.launch();
try {
  const page = await browser.newPage();

  // Option A: use a named profile supplied by Puppeteer.
  await page.emulate(KnownDevices['Pixel 7']);

  // Option B: choose the CSS viewport and mobile behavior yourself.
  // These example dimensions are illustrative, not a universal Android standard.
  // await page.setViewport({
  //   width: 412,
  //   height: 915,
  //   deviceScaleFactor: 1,
  //   isMobile: true,
  //   hasTouch: true,
  // });

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

Run the file with Node.js in a project configured for ES modules, or save it with an .mjs extension. Replace https://example.com with the page you need to capture. The image contains the visible viewport because fullPage defaults to false.

Set emulation before navigation

Configure the device profile or viewport before calling page.goto(). Resizing can affect how a site behaves, and changing mobile or touch settings may cause a reload in some cases. page.emulate(device) is a shortcut for applying the chosen device’s user agent and viewport settings.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

Choose when the page is ready

The example uses waitUntil: 'networkidle2'. Pages that keep network connections open or load content after navigation may not reach the state you need with that condition. In those cases, navigate using a condition suitable for the page and wait for a specific element or state before taking the screenshot. The screenshot should be captured only after the content you want is visible.

Capture the full page or a specific area

For a viewport capture, omit fullPage or set it to false. To capture the complete document instead, set fullPage: true:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
await page.screenshot({
  path: 'android-full-page.png',
  fullPage: true,
});

Puppeteer’s screenshot options also support clipping to an area, choosing an image type, setting image quality for applicable formats, and controlling background behavior. Use those options when the deliverable needs a cropped region or a particular output format; they do not change which Android viewport you configured.

Troubleshooting

  • The screenshot has desktop layout. Confirm that you called emulate() or configured setViewport() before navigation. With explicit settings, include the mobile properties your target requires, such as isMobile.
  • The page reloads after changing the viewport. Avoid changing mobile or touch settings after navigation. Configure them before page.goto(), then wait for the page to reach the state you want to capture.
  • The screenshot misses content that appears later. Navigation completion does not guarantee that every site-specific element has rendered. Wait for the needed element or state before calling page.screenshot().
  • The image is taller than the screen. Check whether you set fullPage: true. Remove it or set it to false for a viewport-sized capture.
  • The result does not match a real Android device. Puppeteer emulates device metrics and a user agent; it does not establish how the site renders on physical Android hardware. Validate on a real device separately if hardware-specific behavior matters.
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 can return a screenshot with one API request. Its pre-capture cleanup accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. An MCP server gives AI agents screenshot tools, and the free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000.

For setup and parameters, see the ScreenshotNeo API documentation. Example cURL request:

Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black
  • PRIVACY DISPLAY: Automatically hide your screen from those beside you. The built-in privacy display can be preset¹ to turn on when receiving notifications, typing passwords, or using specific apps
  • TYPE IT IN. TRANSFORM IT FAST: Enhance any shot in seconds on your smartphone by using Photo Assist² with Galaxy AI.³ Add objects, restore details, or apply new styles by simply typing or tapping
  • NIGHTS, CAPTURED CLEARLY: From gigs to city lights, record and capture moments after dark with clarity using Nightography so your photos and videos stay crisp and clear on your Samsung Galaxy
  • MAKE IT. EDIT IT. SHARE IT: Turn everyday moments into something personal with creative tools built right into your mobile phone, whether it’s a special contact photo, custom wallpaper, an invitation or more⁴
  • HELP THAT KEEPS UP: Stay in the moment while Now Nudge with Galaxy AI helps you respond faster and stay organized with smart suggestions⁵ that appear exactly when you need them on your phone
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

Sign up for 1,000 free screenshots a month; no card required.

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

Quick Recap

Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Activating is easy, just 3 steps.
  • ACTIVATION Promotion: Includes 1500 min, 1500 texts & 1500 MB Data + add more as you need it
  • CAMERA SYSTEM: 50MP Quad Pixel camera. Capture sharper, more vibrant photos day or night with 4x the light sensitivity.
  • PERFORMANCE: Blazing-fast Qualcomm performance. Get the speed you need for great entertainment with a Snapdragon 680 processor and 4GB of RAM.
  • 64GB built-in storage. Get plenty of room for photos, movies, songs, and apps. Made for US

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.