I think you need to take a break from social media, or find different circles within social media apps where you can less experience that.
Social media in general harbors a lot of toxicity and inappropriate negativity in itself. A lot of people love drama, and because we hide behind computers and our phones, it gives us the sense of liberty and security to reveal the darkest and cruelest sides of ourselves.
But back to your original question, are you sure the problem is social media, and not perhaps you're hanging around the wrong users?