There’s usually a blocklist or two for whatever social media site you’re using that can help prune them out. I also try and make sure that the spaces I frequent, both online and offline, are explicitly pro-trans since it makes most bigots uncomfortable.