Im working off of an app template that creates a webview for my site. I need a way to hide a div depending on whether of not that user is using my webview android app.
So far I have found the following php code:
if ($_SERVER['HTTP_X_REQUESTED_WITH'] == "com.company.app") {
echo 'WebView';
} else{
echo 'Not WebView';
}
With this code what else do I need to add in order to hide a specific div (my header in this case)?