The first time my phone heated up and gave me a warning was when I used the camera for quite a bit, in a very hot day (about 37C) to shoot some insects, while being in direct sunlight.
After a while being in the sun with the phone and shooting, it felt pretty hot to the touch (the front, and also the back), so I went back inside and charged it, thats when I noticed the warning that charging is temporarily stopped due to high temperature.
Then, I had to let it cool down for a bit, and continued to shoot, but then it went hot after a shorter time, probably because I didn't let it cool down long enough.
I don't use it for many other things except calling and messaging and some other apps, that's while being in my house, so I wouldn't know if mine gets hot in other conditions as well.