I remember when the lockdowns first hit. After about a month, the skies were clearer. I lived in the suburbs at the time and it was subtle but noticable. This was his things were supposed to be. Little traffic, less noise and smog pollution.
Return to office mandates killed it all.
Traffic court, while yes it's a court of law, is a bit more relaxed. Judges have far more leeway and they have a long docket.
You're not the only one being seen and the judge wants to go home on time.
Be honest, courteous. In the rare event that the police officer starts saying things that are completely egregious, plead the fifth and ask for a continuance. Tell the judge that these facts are new to you and you'll need time to assert a defense.
The judge may ask what you thought the charges were. Say something along the lines of, "Without waiving my fifth amendment right to self incrimination, my understanding is that I'm being charged for driving with an expired license."
But this should be rare. Judges don't like surprises either.
Again, remember that this is traffic court. Everyone is busy. If you're a dick, they won't have patience for you.