It depends on your prospective. In the production of solar cells metals like mercury and lead are used because of which a little number of oxides of the metals are released in the environment. Over a long period of time, it does not cause pollution but looking only at
manufacturing it does on a small scale.