--- sidebar_label: Page.viewport --- # Page.viewport() method Current page viewport settings. #### Signature: ```typescript class Page { abstract viewport(): Viewport | null; } ``` **Returns:** [Viewport](./puppeteer.viewport.md) \| null