The VisualViewport interface of the Visual Viewport API represents the visual viewport for a given window.
VisualViewport
MDN Reference
The visualViewport read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or null if current document is not fully active.
visualViewport
null