When I run a new page, I must specify size of the viewport using the setViewport function:
setViewport
await page.setViewport({ width: 1920, height: 108
As explained in this issue
page.setViewport({ width: 0, height: 0 });
makes chromium set the viewport by inferring the current screen resolution. Seems to only work with headless: false
headless: false