If the teacher needs to quarantine or isolate and teach virtually, they will do so, and a substitute teacher would be in the class to proctor.
If the teacher is unable to teach virtually a qualified substitute teacher would be in the class.