The largest heat entry usually occurs through solar radiation. Full shading through EXTERNAL measures provides the most in summer.
Once the heat is inside, you can't quickly get it out by ventilating.
24 degrees is really not that bad now with the recent intense heat, in my opinion.
Here in the apartment it is 27, a south-facing window is not equipped with EXTERNAL blinds.