It does not matter if the device is “plugged in” to the grid or not. If it has conductive components, like wires, it can be fried. EMP is fairly poorly understand by most people, just like other forms of radiation.
We’re not talking about a full-blown EMP attack, we’re talking about a solar flare. Electrical surge is the primary threat, to my understanding.