Fix class usages from global namespace

Remove unused global

Simplify isOnMobile()

Bug: 57540

Change-Id: Ibfb1dae2b2a0e3a1cf825a672014675215611141