It is done by painting one side of the glass by silver paint. Also this silver is covered by an ordinary paint, so that it does not come into contact with atmosphere. This is how we can make mirror from glass
We can convert a transparent glass to a mirror by cleaning or polishing it .