Thanks!
It's hard going now though. I have no idea how to style the mobile part beyond the front page, as there it nothing to 'grab onto' with the CSS. It's all quite mysterious: some elements seem to be overriden, while other retain the styling I gave. Some parts seem to lose 'position relative' for some reason that I don't understand. It's mysterious.
The best way to do mobile is to load in another stylesheet, or perhaps add a new style to the body tag. But neither seems to be the case. It seems the html is rewritten. I'm about to pull my hairs out
Then the Z-wave thing. OMG. A whole new can of worms! I was hoping to only style certain pages. But that z-wave thing seems to get the same ID tags (#hardware) as the hardware overview page.