Mobile device detection helper