Perseverance (the rover) has its own "Gaseous Dust Removal Tool (GDRT)" that puffs compressed nitrogen to remove dust from samples before analyzing them, not sure if it can turn that back around on its own panels though...
Perseverance does not use solar power. Instead it has a generator using the slow decay of radioactive material. The solar panel problem was more with earlier rovers