How to tell element by CSS/JavaScript to take 100% of visible height = 100vh - keyboard height ?
It seems to be the duplicate to this question and as Nathan Manousos commented
window.visualViewport.height
can help to find the actual visible content height on a phone.
Thanks GhostPengy for pointing.