My darkroom is in the basement, below grade, so the room temperature rarely goes more than a few degrees above 70ºF/21ºC. Unless it is in the height of summer, I'm usually warming my developer up to 20º but, if your darkroom gets hot, you can just reverse my idea to cool your developer down.
I read the temperature of the stock developer and figure the difference between that and the desired temperature. (20ºC)
Generally, I find it around 18º. That's two degrees cooler than I want.
Then I mix up a container of water that is two degrees warmer than I want it. In this case, that's 22º.
Mix warm water and ice cubes and stir, adjusting little by little until you get what you want.
Since I use my developer 1:1 most of the time, all I have to do is mix equal amounts of developer and tempered water.
The water was two degrees too warm. The developer was two degrees too cool. The result comes out just right.
I rarely miss by more than a half degree. That's about as precise as my dial thermometer can read.
If I miss or if I am not diluting my developer, I bathe my container of developer in a tub of ice water or hot tap water and stir until it is the temperature I want. (Don't forget to stop a hair bit before you get to the temperature you want in order to account for the thermal mass of your container.)