Set Playwright’s browser context to a 360 CSS-pixel-wide viewport, then capture the visible screen with page.screenshot(). For an image that is exactly 360 raster pixels wide, use scale: 'css' and deviceScaleFactor: 1. The example below uses a placeholder URL; test with an authorized environment and synthetic banking data.
Capture a Playwright screenshot at 360px
In Playwright, the viewport width is measured in CSS pixels. The viewport height is your choice; use a value that matches the screen area you want to inspect. Setting isMobile and a locale can help emulate relevant browser behavior, but does not turn a desktop browser into a real phone.
As an Amazon Associate I earn from qualifying purchases.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
try {
const context = await browser.newContext({
viewport: { width: 360, height: 800 },
deviceScaleFactor: 1,
isMobile: true,
locale: 'en-IN',
});
const page = await context.newPage();
await page.goto('https://your-test-banking-app.example');
await page.screenshot({ path: 'banking-360.png', scale: 'css' });
} finally {
await browser.close();
}
})();
Replace the example URL with a permitted test URL. The code is an illustrative configuration, not a report of a test run or a claim about any particular Indian bank site. Playwright’s emulation documentation describes browser-context settings such as viewport and touch behavior; its screenshot API reference documents screenshot options and output scale.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Choose viewport or full-page capture
| Option | What it captures | Use it when |
|---|---|---|
| Default viewport capture | The visible browser viewport—in this example, 360 by 800 CSS pixels. | You want a single mobile-screen artifact showing what is currently visible. |
fullPage: true |
The full scrollable document, captured as if displayed on a very tall screen. | You need a long-page image of the entire document rather than one screen. |
To capture the entire page, change the screenshot call to:
#1 Best Overall
- 【REAR CAM POWER, FLAWLESS SELFIES】 Turn your phone’s superior rear camera into a pro selfie monitor. Get instant, lag-free visual feedback on framing and lighting. Never guess your shot again—elevate your YouTube vlogs and Reels instantly. (Not for Google Pixel).
- 【PLUG & PLAY】Instant 4K@60Hz wired mirroring for iPhone 15-17 & Android (via App). Zero-latency, no WiFi needed. Perfect for vlogging. (Note: iPhone 14 & older needs adapter).
- 【PERFECT AUDIO SYNC】 Built-in speaker delivers real-time audio synced perfectly with your video feed. Perfect for TikTok, Reels, or YouTube. Effortlessly switch between vertical and horizontal modes to match any social platform’s requirements.
- 【WIRELESS & MAGNETIC】Universal lag-free mirroring for iOS/Android/HarmonyOS. Built-in N52 magnets snap to iPhone 12-17; includes a metal clip for non-MagSafe devices.
- 【CREATOR READY & LONG BATTERY】Get up to 3 hours of continuous filming per charge. Lightweight and portable—the ultimate tool for travel vlogging and professional content.
await page.screenshot({ path: 'banking-full-page.png', fullPage: true, scale: 'css' });
Full-page mode changes the image’s height and content; it does not represent only the initially visible mobile screen. See the screenshot API reference and Playwright screenshots guide.
Get the intended image dimensions
The context viewport specifies browser layout size, not automatically the number of pixels in the saved image. Playwright’s screenshot scale determines whether output uses CSS pixels or device pixels. With scale: 'css', the image follows CSS-pixel dimensions; setting deviceScaleFactor: 1 avoids a higher-density device-pixel output for this capture. Together, these settings make the screenshot 360 raster pixels wide for a 360 CSS-pixel viewport. If you omit them or choose device-pixel output, the raster dimensions may differ. See the screenshot API reference.
Rank #2
- 【Complete All-in-One Filmmaking Solution】This professional video kit includes everything you need to shoot studio-quality videos immediately: ergonomic U-shaped stabilizer handle, universal phone cage, action camera mounting adapter, RGB LED fill light, and directional shotgun microphone. No need to purchase separate accessories, saving you both time and money.
- 【Curved U-handle Stabilizer】Equipped with 3 cold shoe mount on the top and 2 universal 1/4" screw on the base, allowing you to simultaneously mount your camera, smartphone, external monitor, microphone, LED light, and other accessories. Multiple configuration options adapt to all your shooting needs.
- 【Variable Smartphone Video Cage】Rich expansion options, including 3 cold shoe mounts and five 1/4" threaded holes, offering a secure and versatile camera grip for dynamic filming. Comes with a detachable handle grip,ideal for recording different wonderful angles quality Videos. Works seamlessly with all smartphones (with or without a protective case, fits 4.7"-6.7" screens).
- 【Creative Lighting & Control】Adjustable iPhone light offers 102 LEDs (30 RGB + 72 high-CRI LED) deliver 800lm at 120° with CRI95+ sunlight accuracy. This small rgb light offers 10%-100% dimming for studio-quality led light anywhere. 【Tips】If the product does not light up when turned on, please charge it before use.
- 【External Microphone】 Compatible with iPhone, Android, cameras, camcorders, recorders, tablets, and laptops,ideal for recording YouTube Vlogs, Tik Tok, interviews, family vacation trips, live music, outdoor events, etc. 【Tips】Use a straight TRRS cable (not curved) and connect the "L" end to the microphone for proper function.
Protect financial data in screenshots
Banking screenshots may expose account numbers, balances, names, or transaction details. Prefer synthetic test data, and mask sensitive elements before saving or sharing a capture. Playwright’s screenshot API supports masking selected locators; for example, adapt the locator to the sensitive field in your test page:
await page.screenshot({
path: 'banking-360-masked.png',
scale: 'css',
mask: [page.locator('[data-testid="account-number"]')],
});
Confirm that the locator selects the intended content in your test environment. OWASP’s Mobile Application Security Testing Guide warns that screenshots of banking applications can reveal account, credit, and transaction information. This is a reason to treat captures as sensitive, not a claim that a particular web app stores or exposes data in a specific way.
Rank #3
- 🎥 Crystal-Clear Live Preview: Features a 4.02-inch HD screen with a resolution of 480*800 pixels and a full viewing angle, providing a sharp, real-time preview of your camera feed. Perfectly frame your shots for photos, 1080P videos, and live streams without any guessing.
- ⚡️ Long-Lasting Battery & Portability: Powered by a built-in 1500mAh rechargeable battery that offers up to 3 hours of continuous use. Combined with its ultra-lightweight design (only 150g) and compact size, it's the perfect on-the-go companion for all-day vlogging and content creation.
- 📱 Universal Wireless Compatibility: Effortlessly connect your smartphone wirelessly! Supports AirPlay for iOS and Miracast for Android devices for seamless screen mirroring. No messy cables needed, just instant, stable connectivity for hassle-free operation.
- 🔄 Multi-Functional Hub: It's more than a selfie screen! Perfect for live streaming, recording vlogs, online teaching, video conferences, and even screen sharing. Its versatile design makes it an essential tool for creators, professionals, and anyone who communicates online.
- 🧲 【N52 Strong Magnetic Attachment & Universal Fit】 Features a powerful N52 magnet for instant, secure attachment to magnetic phone cases. A complimentary metal plate is included to easily add compatibility to ANY other smartphone model, making it the most versatile magnetic selfie monitor available.
What mobile emulation does—and does not—prove
A 360-pixel Playwright viewport lets you inspect a page under an emulated browser configuration. It does not establish that the page works on every real phone, validate a bank’s live service, or replace testing on physical devices. Real-device behavior can depend on browser and operating-system characteristics outside the viewport setting.
Troubleshooting
- The output is wider than 360 pixels: check that the context uses
viewport: { width: 360, ... }and the screenshot usesscale: 'css'. For exact 360-pixel raster width, setdeviceScaleFactor: 1. - The screenshot is taller than expected: confirm you have not set
fullPage: true. The default captures only the viewport; full-page mode captures the scrollable document. - The capture is blank or navigation fails: verify the test URL is reachable from the machine running Playwright and that you have permission to access it. This example does not prescribe a bank login flow or bypass access controls.
- The mobile layout does not appear: verify the viewport configuration is applied to the context used by the page. Mobile emulation is not a guarantee that a site will render or behave like it does on every physical device.
- Sensitive text remains visible: check that the masking locator matches the relevant element before saving or sharing the image; use synthetic data where possible.
Or skip the browser setup
ScreenshotNeo can return a screenshot from one API request. Cookie and consent banners, newsletter popups, and chat widgets are removed before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server provides screenshot tools for AI agents, including Claude, Cursor, and other MCP clients.
For a 360-pixel viewport, request the desired dimensions using ScreenshotNeo’s documented parameters. This cURL example captures the supplied target URL; consult the ScreenshotNeo API documentation for supported parameters and formats.
Rank #4
- Real-time Screen Phone Sharing Monitor: FMC Vlog Selfie Monitor Screen delivers real-time screen sharing, letting you preview your phone display instantly. With its magnetic design, it easily attaches to the back of your phone, using higher-resolution back camera for selfie, livestream or TikTok Creation without guesswork or blurry footage
- iPhone screen mirroring connection: step1, long press power button 3s to turn on; step 2, swipe down from top right corner of phone screen, tap "screen miooring" lcon to seach; step 3, select "T20--xxxxx"; step 4: enter password:1234 if promted.
- HD Display Quality & Smart Viewing Features: This Phone Screen Monitor features a 1080P HD display, supporting 4K 30fps video, giving you a clear, real-time view of your phone's camera feed. With three adjustable brightness levels, you'll see every detail clearly whether in harsh sunlight or low-light environments. Easily switch between full screen and aspect-ratio scaling, and use the one-tap 180 screen rotation to adapt your view instantly
- Portable & Lightweight Design: Weighing only 0.22 lbs and just 3.97 inches, this selfie monitor fits right into your pocket for creators on the go. With a universal Type-C charging port, recharging is fast and convenient using your phone cable. Each package includes a Bluetooth remote control, allowing you to take hands-free shots and start recording remotely with just one click
- Widely Compatible with Multiple Devices: This wireless connection technology supports iOS 9.0 or above, Android 2.0 or above, HarmonyOS 3.0 or above, MagicOS 4.0 or above. Compatible with mainstream smart phone devices, no need for additional accessories, ready to use
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 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.
Quick Recap
Best Value
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.

