tar someone with the same brush

US /tɑr ˈsʌm.wʌn wɪð ðə seɪm brʌʃ/
UK /tɑr ˈsʌm.wʌn wɪð ðə seɪm brʌʃ/
"tar someone with the same brush" picture
1.

to unfairly criticize someone by associating them with a group that is disliked or has a bad reputation, even if they do not deserve it

:
It's unfair to tar all politicians with the same brush; some are genuinely trying to make a difference.
Just because a few students cheated doesn't mean you should tar the whole class with the same brush.