Companion app iPhone Xs screen lock

On iOS 13.3.1 iPhone 7, Companion app would keep running and visible as usual. But moving to iPhone Xs while running Companion, after a short while the Xs lock screen kicks in. Is there some setting that didn’t migrate across or can be set, or is this a bug in Companion?