There is an isolator that you install between the gauge and the pressure source when a mechanical gauge is used inside the car. It puts fuel on one side of the isolator and a non-flammable liquid on the other, so if the inside gauge leaks, there is no fire hazard.
I've been using an isolator for several years (40,000 + miles) and it has not failed yet. Got this one before the electrical gauges came out. Just my experience with it.