iPhone Goes To Sleep While Navigating This is a new thing my phone does since I believe iOS 12. Is there any way to stop it?

I use turn-by-turn navigation on my phone all the time. But these days, the phone tends to go to sleep in the middle of my trip. It used to never do this. The phone would always stay fully awake while navigating. But now my phone goes black and I have to hit the home button to wake it up and go back to the map.

The phone is plugged in to power while all this is going on. 
This "feature" is new and is a huge pain in the ass. Is there any way to go back to the previous behavior?
If you go to settings/Display &amp; Brightness/Auto-Lock and set this to never, that should work? 

Hope this helps