Hide header based on max-device-width, not max-width

The header will be hidden on small screen sizes, but not on devices with
larger screens even if the window is resized to a small width.