use max-width for viewport not width
setting width to device-width can have issues where
the page is viewed in a webview as part of an app for
example. We should actually use max-width here as this
allows the screen to be smaller if there is not enough
space
this fixes
bug 31214