Page disappears (scrolls up) when keyboard opens

Hi, I created a register and login form and in the browser it works perfectly.

Unfortunately when I debug on my android phone (Galaxy S7) when I select the email-input box, the whole login-form goes up outside of the screen (probably because of the keyboard).

How can I fix this? Thanks