So I need to include javascript and jquery in my html page that will check whether visitors are using mobile browsers, and display a video at different sizes depending accordingly.

I've tried several ways of doing this, but have yet to find something that actually works. 

What I need is something like:

```
if (isMobile()) {
   //display larger
else {
   //display smaller
}

```

Can anyone help?