It could be any of a number of things - an intermittent wifi radio, a contact to the antenna that's just barely making it, due to a loss of springiness in the contact, interference (a bad Bluetooth radio can do that) ...
The phone has to be looked at.