Yeah. The most recent example of this that sticks out in my mind is the Darrell Brooks murder trial. The judge repeatedly had him sit in a separate room all by himself. The judge was muting and unmuting him as necessary.
We need to do that with the presidential debates that he's super duper totally going to attend.