For that case, it would be useful if you could nest some chunk of the head in a semantically uninteresting element like a div, just to mark that as the "volatile set of stuff that we might want to merge changes into" and keep stuff that never changes, like the meta viewport or base css out of that. But that's probably too complicated an idea (is it even possible, idk)