The way I was able to go back was by pressing two fingers on the screen at once. I don't know if this works on all android devices, but it worked on a Galaxy S10.
lol thank you after posting my comment I read through the comments and discovered that you have to use 2 fingers and works for me and I'm using Razer phone 2