Does pressing "h" on your keyboard while playing not hide the UI elements?
If you use a phone to play, you could just swipe down on your screen, it might work