tl;dr: Useful CSS Stuff - #34 by nminchin
Actually, having read the OP, rem
units which I suggest won't work here as it's got nothing to do with the viewport changing size; it's the embedded view that's changing size and thus the rem size won't be affected. I don't ever do this so I haven't had to hurdle it before