Go to setting then in device care. Check performance profile. Keep it on light. And optimize your battery. This will help you to keep your phone cool. And battery life to increase. Hope it works for you.
First upgrade the device to latest version.Normal use it should not heat. If it's heating show to ur nearest samsung gallery.As I am watching videos for around 3 to 4 hrs and it never heats up