That is a challenging situation for sure. I shoot in RAW and try and blow the highlights a bit, and underexpose the shadows, then tweak both in post-processing to balance it out. I use Lightroom, which is great for all of the above.
Or, you can just use your phone which does it all in real time! But it will never be a photo that you'll want to see on a big screen.