With the old phone (Android 8) I was using Gravity Box.
https://github.com/GravityBox/GravityBox
Among other things, there is the ability to recall the last open running app e.g. by remapping the double click on the recent button. I think it's a "hidden" command of Android, because the same...