I’m not opposed to age-gating at all, I think it’s appropriate in many situations and useful, and democratic societies can decide their own rules there. But it should be handled and authenticated as low-level as possible, at the operating system layer.
See also: Australia’s Senate bans social media for kids under 16. But there are lots of other less controversial examples, like adult websites, or ordering alcohol online or through an app.