We've bought a couple of properties across the country now and are under contract for another right now. We've made some mistakes and learned hard lessons. How you do it really depends on the type of property you're looking at, the location, and if it's competing in the crazy hot market like many cities right now.
You'll want to find a good realtor and get them on your team. This realtor schedules a time to walk through the property and does a live video stream or records and sends it to you for an initial look. If it sucks, you back out. If it's good, you continue to the next step of putting under contract. During this time you are in the due diligence period. Make sure the contract dd period is long enough for you to schedule and review the inspection report from a licensed inspector and is long enough for you to travel there to look at it in person. (If the market is crazy hot, you can always put it under contract first, then have the realtor do the initial walkthrough, followed by the inspection and your own personal visit).
Why does the dd period need to be long enough for all of this? So you can get your earnest deposit back if you decide you want to back out of the purchase due to major issues with the property, or you just don't like the look in person. You could also try to negotiate repairs with the seller.
Regardless, you need to see it in person before you purchase it. Trust me. Videos don't do full justice and inspectors breeze over things like cosmetics, in many cases. If you don't see it in person yourself, you're taking a bit of a gamble.