Even if this is initially permitted, it will last only until the first time Trump complains about something that occurred during a sidebar on social media. Then the judge will ban him.
You can’t ban him from participating in his own defense.
Actually, in NYS, a criminal defendant is allowed to attend any court meetings or proceedings involving his case. As my Attorney wife explained it, “if the defendant’s lawyer can attend, so can the defendant.”