It depends.
If P=NP with a trivial algorithm? Unplug every internet connected device you own and live like it's the 70s again for at least a year.
If P=NP but the algorithm has constants such that it is worse than brute force on equations where the number of variables has fewer than a million digits? Nothing tangibly changes.
Nah. Even if P=NP with a trivial algorithm (unlikely) the impact would be temporary and limited. Leveraging that to break security first requires getting access to the underlying content, which isn't so easy. Like I can't crack your encrypted messages if I don't have the messages. Any many of the most sensitive systems have already moved on to algorithms which aren't vulnerable to such attacks. Such an eventuality would cause some disruption for a few months and then everyone would move on.