It's possible to set parental controls on YouTube with Restricted Mode, or via the YouTube Kids app.
Under the SAFE For Kids Act, social platforms could be required to verify the ages of users before serving ‘addictive’ algorithms.