From my experience, this happens when you perform a wheelie while going uphill, which is annoying but it's consistent. it also means you can't let muscle memory from Mario Kart take over when going up ramps.
some mobile devices have nfc readers in them so it may be possible to use that to get around the problems with nintendo controllers not allowing easy nfc access