Not that the government would ever do this, but it is technically feasible for them to distribute anonymous digital IDs that verify age without allowing the user to be tracked or identified.
Once the government is issuing digital IDs to grant access to speech you can split that hair however you want I think it's a pretty uncomfortable idea for a lot of people.