I don't like this "tmp-hide" class name because it is not descriptive at all. I'd be okay if you changed it to "hiddenWhileRecording".

Better, though, might be to set a "recording" class on the body or on the hud.

document.body.classList.add('recording');