Yes, you can apply gentle soaps or shampoos on solar panel. But make sure they are not made with harsh chemicals and clean the panels properly after rubbing them. Many a time soap didn’t washed off properly and freeze on the panels which may also reduce the efficiency of panels.