There are many like it, but this one by Malte Wassermann is a really good one. It goes the extra mile, for example, by injecting the correct meta tags, sending the right user agent, and refreshing the page in its newly resized viewport.
Viewport Resizer
DigitalOcean joining forces with CSS-Tricks! Special welcome offer: get $100 of free credit.