Remove contact form from mobile except in contact page

Detech device from theme_preprocess_page and create a variable and apply a condition with that variable in tpl file