How to stop canvas resizing when mobile keyboard is in use?

If it is related to the post below, I have the same problem in one of my projects. Unfortunately I was also not be able to find a solution for this.