When I've found myself in a toxic work environment, I usually quit but it's difficult to find non-toxic environments these days.
I guess an alternative strategy would be to embrace the toxicity, act and pretend all the time and try to make the environment even more toxic until everyone else quits and you get promoted because no one else has been in the company long enough to understand it.
I don't think I'm capable of this but I've seen it work for other people. It's probably not good for you and your social relationships but it seems that some people can compartmentalize better than others.