How hard would it be for the Coaching staffs to lead their teams to the post game handshake, then step back facing each other so that the student pass between them while shaking their opponent's hands.
..............c ac
***********
..............**********
..............ac c
The players know they are being observed by their respective coaching staff and that any inappropriate activities will be observed and dealt with. The NFHS Coach's "Code of Ethics" states that it is the coach's responsibility to address "sportsmanship" with their teams. Coaches could institute this policy themselves or a State association could formalize the procedure and the responsibility
Just leave the referees out of it.