Sometimes some parts of social media are downright toxic and full of hate, which can indeed affect your mental health. There's also the fact that people become too dependent on socializing on social media than real life and socializing in real life can often have a better effect on your mental health than socializing on the internet. Social media can also make people feel jealous when others post their successes or they wish to seek validation for their problems, which can affect your mental health in different ways.