add method to check if current platform is mobile.