What’s the best way to realistically overcome a fear of heights?

I wonder if you can. Fear of heights isn’t exactly an irrational fear that can be “logic’d” away. It’s a pretty rational, legit fear because of real consequence. There is some degree of risk to any height so I think it might be hard to overcome. That’s my totally uneducated guess.