I have a 2007 Toyota Camry 2.4 L 4-cylinder which will not start after it has been driven for a while but if you let the vehicle set and cool down for about 20 to 30 minutes it will start up and run just fine there's no trouble codes and runs at normal operating temperature does not overheat just will not start until it cools down a bit

when it doesn't start, do this video to find the source https://www.youtube.com/watch?v=064Ilsz8Fzg&t=133s