[HTML 5] Detect visualViewport change
On mobile device, when you open / close the keyboard, zoom in / out, it might affect the visual viewport view (the actual page content); to detect changes we can reply on:
window.visualViewport.addEventListener("resize", () => {
// change happens
});