Quoted By:
You can try and distill water by using a lens/es, yes
just leaving water to the sun will not purify it. It can be made safeR to drink, but it won't eliminate the risk at all. Pathogens and solid residues still pose a major risk even after leaving the water to sit in sunlight for multiple hours. You can further reduce that risk by siphoning it out of the container from the top.