Get the header working more reliably on different devices