How to stop hot air from engine compartment?

Make sure the heater flaps are closing correctly, also get an infrared temp gun, you should be able to narrow it down with that