Optimistically, age can be verified without giving away identity. There are cryptographic methods for doing so. And I'm sure this is how the age verification mandate will initially be sold.
But after the populace gets used to the idea of age verification, the government can easily get rid of all the cryptography involved. "For the kids"