This is kind of to be expected during charging. However, if it's happening otherwise, you might want to power off and power back on your phone, and then take a look at any apps or live wall paper you're using and either uninstall them or use a different one for a while to see if that could explain the issue.