These authors have big Google Docs of evidence, https://jonathanhaidt.com/reviews/. But if you read it, you will see the effect is (AFAICT) limited to certain populations. There is a significant fraction of students that do have trouble with executive function and staying on task and will fail to do their homework because of social media access. Then there are the other students that have no trouble staying off social media when they have to do homework.