When a smartphone becomes very hot, the software inside of it throttles the hardware down in order to safeguard the device and prevent serious damage to the device. Generally most smart phones are designed to handle and disappate a certain amount of heat, but you shouldn't leave your phone in a very hot situation such as leaving it in a car during a hot day.