When I run a new page, I must specify size of the viewport using the setViewport function:
await page.setViewport({
width: 1920,
height: 108
It's probably worth mentioning that if you combine puppeteer.launch({defaultViewport: null}) with puppeteer.connect(), again you need to pass {defaultViewport: null}}, otherwise the viewport is adjusted back to default size. So in this case, use:
await puppeteer.connect({browserWSEndpoint: ws, defaultViewport: null})