How do I resolve the problem of my imac overheating?

My imac gets extremely hot when it's turned on for more than 5 minutes. I tried cleaning the vents, but it still overheats.
Make a Genius Bar appointment with the nearest Apple Store to have them diagnose your heating problem, especially if the problem just started.

Original thread: https://forums.imore.com/threads/how-do-i-resolve-the-problem-of-my-imac-overheating.370264/