I don't go to the toilet with the intention of playing poker, but if I have to go to the toilet and at that point I am playing poker then yes.
I'm unwillingly do it because it is in my habit to play poker on my laptop at the table, but if I have to go to the toilet I choose mobile phone instead of laptop to play poker with.
In theory, I could take a laptop with me to the toilet and play poker on it, but it is way more convenient to play poker on mobile phone in that situation.
I also play poker on my mobile phone in situations where I do something that requires movement, but unfortunately in those situations I'm poorly focused on the game.