Skip to main content
Render the same page at two viewport widths to see how its layout responds. The CSS viewport controls breakpoints. The device scale factor controls how many output pixels represent each CSS pixel.

Capture both layouts

Install the Doczilla Node SDK with npm install @doczilla/node. Set DOCZILLA_API_KEY and run node capture-breakpoints.mjs alongside the HTML file.
capture-breakpoints.mjs

HTML

Save the HTML below as responsive-page.html, or use a publicly reachable page by passing { url: 'https://your-site.example/' } as the request’s page.
responsive-page.html

Output

The desktop image is 1280 × 720 pixels. The mobile image is 780 × 1688 pixels, while its CSS viewport is still 390 pixels wide.
Desktop trail guide with three route cards in a row

Desktop · 1280 CSS pixels wide

Mobile trail guide with the same route cards stacked vertically

Mobile · 390 CSS pixels wide

Set fullPage: true when you need content below the fold. Keep it off when comparing what someone sees before scrolling. Increase deviceScaleFactor for sharper images at the same breakpoint, with a larger output file as a trade-off. See Screenshot options.