I'm not going to pretend that this is some grand strategy by Trump. He's an immature man-child and that's all there is to it.
But there most certainly is a strategy by his lawyers.
If their client somehow manages to make the judge "lose their cool" its fuel for an appeal/mistrial. So they really have no interest in ACTUALLY controlling his outbursts.
I've never heard of a judge doing such a thing at the end or after a trial, but it would be priceless to see the judge run down the laundry list of actions taken or not taken by the attorneys that they would be receiving fines for.