How did you prevent stretch marks during pregnancy?

I know that they can just be a part of pregnancy, but I know some people have luck with bio oil, coconut oil, etc. so I was just curious as to what’s tried and true out there.