Using a mobile phone while plugged in and charging is ok, but should be done sparingly. The excess heat produced by the screen, radio transmitters, and body heat raise the battery temperature. Higher temperatures slow the charging process and reduce smartphone battery life expectancy.