Car shuts off when hot, air bubbles in fuel filter

The fuel pump may be sucking air,, check all rubber connecting hoses for cracks or loose clamps..

Then look along passenger side chassis area and inspect fuel line for any sign of staining from a fuel leak ,, that can also suck air when running..