If you're in court and you disrespect a judge then they will usually charge you with contempt of court or disorderly conduct in the court.
If you do disrespect a judge in court then you could either get a fine or possible 30 to 60 days in jail so always be respectful to a judge when in court.
If you're in court for something and you disrespect a judge then things could turn out worse for your court case so always be respect the judge no matter way.
I've seen people get arrested in court for disrespecting a judge in court and they were sent to jail for 30 days so it's certainly not worth the jail time to disrespect a judge.
Disrespecting the judge is not gonna help your court case any way because the judge has to follow the law and is governed by law.