The visualViewport API provides a way to query and modify the user-visible viewport of a web page.
visualViewport