"The Anxious Generation" and other works have shone a harsh light on social media and its effects on youth mental health.