You've providing almost no information which makes it difficult to provide a specific answer, however it sounds like you may have a Samsung with game tools.
Tap the floating icon that appears when you launch a game, there is a toggle for the back and recent button to disable them as shown in my screen shot.