---
layout: api
title: "v3.1.1 JavaScript Library: Mobile"
categories: api
version: v3.1.1
permalink: /api/v3.1.1/mobile/
---
<h2 id="section-mobile">Mobile</h2>
<p>Mapbox.js is optimized for mobile devices and small screens by default.
There are, however, best practices to make sure your map always looks its best.</p>
<h3 id="section-viewport">Viewport</h3>
<p>Modern mobile browsers now support scaling of webpages by leveraging the meta
tag <code>viewport</code>. This enlarges the window making your map lo