Nobody is trying to age restrict the safari app (like a movie theater), but I don't see why websites or parts of websites can't be restricted like individual movies are as they are given a rating by an authority.
But other apps entirely like dating apps? or only fans? can probably be entirely restricted to some age.