I always read that if you keep a phone plugged in for long periods of time, its battery will eventually fail and expand into a spicy pillow, which often deforms the frame, or worse, causes fires.
The solution seems to be removing the battery and keeping it running on the charger.