Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › India

How to Take a Puppeteer Screenshot at 360px Mobile Width for an India-Facing Website

By Freedom251 Team · · 5 min read

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

Set Puppeteer’s viewport to 360 CSS pixels before opening the page, then capture it with page.screenshot(). That gives you a repeatable Chromium screenshot at one mobile layout width; it does not establish that 360px is the standard width for Indian phones or reproduce every Indian user’s device, location, language, or network.

Capture a website at 360px with Puppeteer

The viewport width is measured in CSS pixels. Set the viewport before navigation so the page loads at the dimensions you intend to test. In this example, the height and device scale factor are explicit test choices—not claims about a typical phone.

As an Amazon Associate I earn from qualifying purchases.

Runnable Node.js example

Install Puppeteer in a Node.js project with npm install puppeteer. Save this as screenshot.js, replace the URL with a page you are authorized to capture, and run node screenshot.js.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
const puppeteer = require('puppeteer');

async function main() {
  const url = 'https://example.com';
  const browser = await puppeteer.launch({ headless: true });

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

    await page.setViewport({
      width: 360,
      height: 800,
      deviceScaleFactor: 1,
      isMobile: true,
      hasTouch: true,
    });

    await page.goto(url, {
      waitUntil: 'domcontentloaded',
      timeout: 30000,
    });

    await page.screenshot({ path: 'mobile-360.png' });
  } finally {
    await browser.close();
  }
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});

This captures the current viewport, not the entire document. Puppeteer’s Page.screenshot() accepts options for capture behavior; to capture the full page, change the call to await page.screenshot({ path: 'mobile-360.png', fullPage: true });. Full-page capture can produce a much taller image and may reveal content that would only appear after scrolling.

#1 Best Overall
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black | Large AMOLED, High-Res Camera, Durable Design, Super Fast Charging, Expandable Storage, Circle to Search, 2025
  • 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.

Choose the viewport settings deliberately

  • Width: Keep width: 360 to test the requested CSS-pixel width.
  • Height: Choose a height that matches the scenario you want to inspect. A different height can change what appears in a viewport-only screenshot.
  • Device scale factor: Set deviceScaleFactor explicitly so output dimensions are reproducible. It controls device pixels relative to CSS pixels; it does not change the CSS viewport width.
  • Mobile and touch behavior: isMobile and hasTouch can affect responsive behavior. User-agent selection can matter too; set it intentionally if your test depends on it.

Puppeteer’s Page.setViewport() resizes the page, and its documentation recommends setting the viewport before navigation because some sites do not expect the viewport to change after loading. It also notes that changing isMobile or hasTouch can reload a page in some cases. For a named-device profile, Page.emulate(device) combines device metrics and a user agent; for a reproducible exact width, the explicit viewport above makes the 360px setting clear.

Make the test relevant to visitors in India

A 360 CSS-pixel screenshot checks one responsive layout in Chromium. “For Indian users” should mean that you have chosen relevant test conditions for your own site—not that all visitors in India share one device, language, location, connection, or browser. The available evidence does not establish 360px as a representative or uniquely Indian handset width.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to | Prepaid Smartphone- 6.6" 120Hz Display, 5G , 50MP Quad Pixel Camera, Long-Lasting Battery
  • 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.

If your site changes by region or user settings, test the inputs that actually affect it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Language and locale: Choose the language or locale your site supports and verify text wrapping, translated content, and formatting.
  • Location and time zone: Set these when pages show location-specific content, opening hours, delivery availability, or local time.
  • Network and CPU conditions: Throttle them when you need to inspect loading behavior or performance-sensitive layouts, rather than treating a fast desktop connection as representative.
  • Orientation and touch: Try other orientations and touch interactions if the relevant user journey depends on them.

Chrome DevTools Device Mode can simulate a mobile viewport, CPU and network throttling, geolocation, and orientation. Google describes Device Mode as “a first-order approximation of how your page looks and feels on a mobile device”: emulation is useful for repeatable checks, but it is not the same as running the site on physical hardware. For important hardware-dependent behavior, verify on actual devices as well.

Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue | Large AMOLED, High-Res Camera, Durable Design, Super Fast Charging, Expandable Storage, Circle to Search, 2025
  • 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.

Common problems and fixes

The page appears to use a desktop layout

Confirm the viewport is set before page.goto(), and check that the site has responsive styles for the width. If the page branches on touch or user agent, configure those signals intentionally; setting a 360px width alone does not guarantee the site will take a particular mobile code path.

The screenshot is blank or the page is incomplete

Check that navigation reached the expected URL and did not fail or time out. The example waits for domcontentloaded, which does not guarantee every image or client-rendered component is ready. If the page needs more time, wait for a meaningful selector with await page.waitForSelector('.your-content', { timeout: 10000 });, using a selector that exists on the target page. A fixed delay can help diagnose timing, but is less reliable than waiting for the content your test needs.

Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black | Privacy Display, Galaxy AI, AI Camera, Super Fast Charging 3.0, Durable Battery, 2026, US 1 Year Warranty
  • 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

The screenshot is taller or larger than expected

The default example captures the viewport. If you enabled fullPage: true, the output includes the full document height. Also check deviceScaleFactor: image pixel dimensions are distinct from the CSS viewport dimensions.

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.

The page changes or reloads when mobile settings are applied

Set isMobile and hasTouch together with the viewport before navigation. Puppeteer documents that changing these properties can cause a reload in some cases, so avoid toggling them mid-test unless that reload is part of what you intend to observe.

Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included | Prepaid Smartphone with Full YR Plan Included bundled with 1500 Min/Text/Data for365 days of service - Locked to Tracfone
  • 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
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 API accepts a URL in one request and can return an image or PDF. For an India-facing check, supply the relevant locale, location, or other options you need; a screenshot service does not make one configuration representative of every visitor.

For a clean WebP capture, use this cURL request and replace YOUR_API_KEY and the target URL. See the ScreenshotNeo API documentation for request options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
  • Cookie banners are accepted and removed before capture, along with supported consent banners, newsletter popups, and chat widgets; each cleanup step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; response headers identify the page verdict and billing status.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients.
  • The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.

Sign up free for ScreenshotNeo.

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.

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

IndiaMobile TestingPuppeteerResponsive Designwebsite screenshots

Leave a Reply

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

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

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

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.