For reference: https://stackoverflow.com/a/64300409
locator.viewportRatio
This package contains the no-browser flavor of Playwright.