This is idiotic.
First off, this isn't Hollywood. You can't put an EMP device in the back of a panel van like in Ocean's 11. There are no non-nuclear weapons that can do the whole "aliens knock out all our electronic devices" schtick.
The effects of HEMPs (ie extremely high altitude nuclear explosions) are wildly overstated and based off Starfish Prime which was in the 60's, with the effects used to scaremonger people ever since. The electrical grid and everything connected to it then, bears nearly zero resemblance to the grid of today and the devices on it. Both the grid and everything connected to it are all much better protected and tolerant of electrical surges. Also, if a country did something like Starfish Prime it would take the US minutes to figure out where the weapon had come from, regardless of what country did it, or what country was hit, because US space command tracks everything bigger than about the size of an apple.
Your cell phone (and nearly everything else around you that is electronic) is designed to handle static electricity shocks which can be 20,000 volts and 10-20mJ. The modern electrical grid is designed to tolerate solar flare storms and more, with automatic protection devices that trip disconnects, and there are millions of arresting devices (like this: https://www.hubbell.com/hubbellpowersystems/en/products/powe...) all along transmission lines and in stations to deal with lightning strikes and so on. Our electrical grids have much more sophisticated monitoring and automatic protection devices. Substations have their own backup power systems to keep control systems running for restarting after a blackout.
Most electronics made in the last 40 years are well shielded for EMI/EMF for preventing & not being affected by interference. That same shielding protects against emp's. Open up any laptop or desktop. fully shielded inside. Nearly every switching power supply has both wide input voltage range but also internal surge protection, and high voltage isolation is extremely common, at least in well made devices. Go look at a writeup about an Apple USB power brick to see what this looks like when it's well done.
Most semiconductors, with some exceptions, are generally much more tolerant of surges and static electricity, or the circuits built around them are better designed to protect them.
Nearly any car made in the last 20 years has electronics that are very tolerant of electrical noise and voltage spikes.
EMF pulses were a concern in the 50's through the 70's because nothing was shielded, electronics and chips were poorly protected, and nearly every household appliance or electronic device was two-prong and if it had a ground lug, it was rarely connected. Electrical codes are stricter, houses have the ground circuit connected to an earthing rod and also often the water pipe if the pipe coming into the house is metal, semiconductors and circuits are better designed, and so on.