When I was in grade school, back in the Dark Ages, I recall the classrooms had a little bathroom in the back of the room. One at a time, no major disruptions if a kid had to go and no accidents in a real emergency, well usually.
Simple yet effective. The students are massed in public schools in this situation. They need to be. They don’t need to have their heads screwed with.