How to prevent hard water stains on bathroom glass?

I used to wipe it with clothes after each uses at my old place, but hard water stains built up over time. Moved to new place, now I tried not only wiping it but also use a squeege. No effect.

Once the hard stains built up it's nearly impossible or take much more efforts to remove, so wondering what's actually the right way (or products) to prevent hard water stains to build up on bathroom glass?

by shionemi