With "enough energy" you could recycle anything. In theory you could for instance vaporize any waste mixture (including radioactive compounds), send it through a giant mass spectrometer, and get output beams sorted by atomic number. But in practice, how much energy is "enough energy" is quite important to whether that process is realistic.
In this case, the relevant metric is how much energy is spent producing and recycling solar panels compared to the energy the solar panels are expected to produce over their lifetime. As long as that ratio can be made sufficiently low, we should be good.
Apply as much energy, heat and oxygen you want to mercury and it’s still mercury.
https://journals.aps.org/pr/abstract/10.1103/PhysRev.60.473 (1941)
So few people know that the alchemists ended up being correct. (they just didn’t have enough energy at their disposal!)
Still less toxic than coal.