mobile check

function to check if the browser is mobile or not