Responding with kindness, care and thought to people on social media sorts the malicious from the sad, in my experience…. The malicious run away, often trying to delete their posts behind them.
It’s a great way to get out of the bubble — find the “troll”’s friends, talk to them, you find they’re just people with views and ideas of their own. You might not agree with them, but you can talk.
It’s sort of social media ju-jitsu — you’re using their actions to defeat their purpose, if that purpose was malice.