Sure! Here's an example of a simple game that meets your requirements. Please note that this code is for example purposes only and may not have optimal design or functionality.
To play the game, simply open the HTML file in a web browser on a smartphone. You can tap on the different elements (buildings, cars, people, traffic lights, tanks, policemen) to destroy them. The game will continue creating new elements, making it endless. However, if you tap on a policeman or a tank, your player will be destroyed, ending the game.