Some heat is perfectly normal, especially when charging or running high-performance apps, though the device should not become too warm to handle comfortably.
If your device continues to get uncomfortably warm after confirming all of the above, you may need to perform a factory reset .
Note: Under normal operation your HTC device should never be hot enough to cause burns or other personal injury due to heat generated by your device.