The simplest way, and the first thing that comes to mind, is to simply make buttons to the right and left of the cubes (the left button rotates the left cube counterclockwise, the right button rotates the right cube clockwise). It's not perfect, but it's simple and might be enough for a fun game.
P.S. And since the game is easy to play without any spins, for balance, you can spin both dice at random angles in random directions by tapping on the selected area. This can be fun!