Prior to social media, we all had incredibly conflicting views, just wasn't in our faces all the time to get outraged about! So the trick is to remember, by having these discussions/disagreements, we're actually making progress. We hear the loudest voices, but there's always smart and sincere people quietly reading and learning, which is a brilliant outcome!
If you find yourself getting outraged, be disciplined and switch activities (exercise, go for a walk, or turn off the source).
I definitely wouldn't leave social media though! Instead, harness them! Train those algos to give you science, book clubs, fascinating music niches, travel, culture - go deep, explore, and 'follow' liberally - you can very easily remove yourself from a group/page. I've found insanely interesting chemistry and physics pages, not to mention domains I never even knew existed, like color theory and a handful of others. Once you start clicking on politics, you'll only get more of it. Click on the good stuff!