Phones do create a magnetic field, but thankfully, it isn't strong enough to demagnetize credit or debit cards. The small magnet in the phone's speaker is the main culprit of generatingthe magnetic field. This field, however, is too weak to cause sufficient damage to a credit card magnetic strip, with some exceptions.