I don't.
At some point I realized there's infinite awesome and infinite cruel things on the Internet, and people usually wanna show you the cruel stuff because it makes money / keeps anxious.
But you don't need to fix the whole world at once and no one can fight the alligators when standing in the swamp.
So I don't, I only get news from friends +& family and otherwise I focus on productive things on he Internet, like nature documentaries, science, entertainment and learning things like coding or philosophy. I know this sounds ignorant but I know this is the state where I am most valuable to myself and therefore all the people around me, so that's how I wanna live.
Now everyone has to find their own threshold of cruelty they can take on a day-to-day basis, but usually if you care about your mental health you should set a limit, only watch some of it. Rarely can people watch cruel things daily and not get PTSD, which is pertinent for jobs like EMT or the military.