I don't understand your point. Isn't the galvanic isolation implemented in the optoisolator by an air gap between the light transmitter and receiver? Maybe I don't know the definition of air gap?
"For this reason, some new hardware technologies are also available like unidirectional data diodes or bidirectional diodes (also called electronic airgaps), which physically separate the network and transportation layers and copy and filter the application data. "