Sure! Here's a simple implementation of Tetris with a shrinking border that you can play on a smartphone. The game uses pictograms to represent the different Tetriminos.
You can copy and paste this code into a new HTML file and open it in any web browser (including on a smartphone) to play the game. The game canvas will initially have a 320x480 size, and the border will shrink by the number of cleared rows. The Tetriminos are represented by black blocks, and you can use touch gestures (or keyboard input on a PC) to control the game. Have fun playing!