2002 Pontiac Grandam GT

My Pontiac will not start once the car has been driven around for about 10-15 minutes. It starts fine when cold but will not start when hot. Will turn over but sounds like it not getting gas or something?? Can anyone give me advice if they have had this issue or know what the problem is.
Thanks

You want to find out if the problem is with the fuel system or the ignition system.

Purchase a can of starting fluid and carry it in the car. The next time the engine doesn’t start, remove the air filter box cover and give a quick squirt of starting fluid up the hose towards the engine. Now try starting the engine. If the engine starts and runs for a moment and then stalls out it’s a fuel issue. If the engine still won’t start it’s an ignition issue.

Do that first.

Tester

Thanks will try that and keep you posted.