For example, a defendant may object to a plaintiff’s witness. The court would suspend the trial, immediately preside over a mini-hearing on the standing of the proposed witness, and then resume the trial with or without the witness, or with any restrictions placed on the testimony by the judge as a result of the voir dire ruling.
In a jury trial, the jury would be excused during the voir dire.