The media decides who the villains or the heroes are arbitrarily and turn the machinery of the state against them.
We see this play out with conservative media creating a moral panic around LGBTQ people and states passing repressive laws.
We see this in tech with Apple getting a pass on China.