When you serve as a judge or a juror you have to set all that aside.
You must judge any particular case based on the evidence presented and the law.
Nothing else.
Unless you and other jurors do a jury nullification of a law.
That is an ideal. Tragically, far too often other factors come into play.
One that made me wince was the trial of a child killer in California. The evidence was damning. As the jury was led out to carry out their deliberations, the killer flipped them off.
After the guilty verdict, one of the jurors said, “I was willing to give him the benefit of the doubt until he flipped us off. Then I knew he was guilty.”
Even this was not enough to overturn the sentence and declare a mistrial.