You post this in the iMac (a desktop) forum and you list your equipment as an iPhone, so we have no idea what kind of laptop.
See this document about the operating temperature of Mac notebooks and how to keep your Mac notebook within acceptable operating temperatures - Keep your Mac laptop within acceptable operating temperatures - Apple Support
It sounds like you have some runaway software on your computer.
Run this analyzer and post the results here:
Etrecheck - http://www.etrecheck.com/
See http://www.etrecheck.com/faq for information about the basic version which is free and how to upgrade this to a power user version.
Using Etrecheck - Using EtreCheck - Apple Community
Extra tips about settings to have it check all parts of your computer, and how to post long reports to the Apple Support Communities window: https://discussions.apple.com/thread/250599211?answerId=251149996022#251149996022