Help on fixing a vapor lock!!!

My 225 slant runs good when cold but it starts to putt and misfire and eventually die when it gets up to temperature. Now I’m pretty sure it’s something related to a vapor lock, if you let the motor cool it’ll run fine again. ALSO I ran the car until it died and noticed the filter was no longer full. There was almost none in it. As in almost no fuel in the plastic see through filter. I don’t think it’s an ignition problem(electronic ignition) it really seems like something with Fuel. All help is appreciated.