It seems to be getting worse, instead of the keyboard disappearing the top section as well now is disappearing. Restored the phone and it continues to get worse. The way to get out of this is to turn the phone off then on. This is the third iPhone X of mine to have the keyboard disappear and first one to have the top bar disappear too. Very time consuming as it happens about 3-4 times in a day (Phone isn’t used very often during the day so probably more if it was a daily driver)