It depends on the implementation. The EU's European Digital Identity Wallet will allow users to prove that they are over 18 without sharing any other personal information.

Anonymous means you can pay someone $2 to use theirs.

Surely that's solved easily by ensuring a 1:1 association between the proof of age and account?