It is normal for any device to get warmer as it is kept on charging. Usually, because there are some chemical reactions going on in the battery when your phone is been charged up that produces some heat