There was a section on this in the sci-fi novel Three Body Problem. The students force a professor of physics to recant his claim that relativity is a legitimate theory, and he refuses, then gets beaten by students.
I remember thinking at the time it was such a bizarre piece of fiction, then I later found out this kind of stuff really happened.
In the cultural revolution, it was different. More than three fourths of the members of the Chinese Academy of Sciences were persecuted, most of whose work did have scientific merit and had no direct nexus with politics. But that was the problem -- just doing science wasn't sufficiently political/ideological for the mob.