How do I make it so the header of a page disappears when clicking a switch?
It is not possible to hide or collapse the page header.
Dang... That'd be pretty neat to be able to do.
But as a workaround, you can make an overlay that expands over the header on click.
There are probably reasons that it's not possible/allowed/whatever, but you might want to post a Feature Request.