How do I deal with Safari's bottom bar?

Safari’s bottom bar hides part of my game’s UI. How can I make phaser take this bar into account to fit the game? Chrome on Android also has one, but the game takes it into account.


I don’t know the details, but I think solutions usually involve either scrolling the viewport very slightly (hiding the UI bar) or detecting iOS Safari and then adjusting the bounds.