ScreenshotNeo

Blog

How-to

Short answers to one job at a time.

How-to8 min read

How to Set the Screen Size in Puppeteer

Set a Puppeteer page’s CSS viewport with page.setViewport(). Learn when to use device emulation, resize content or control headless screen geometry instead.