title: Detect if my application is running on a phone
body: <p>I'm building an application with SAPUI5.</p>
  
  <p>In this application I have a XML view as follows:</p>
  
  <pre><code>&lt;Dialog id="confirmDialog"
          title="Confirm"
          showHeader="true"
          state="Warning" 
          stretch="true"
          type="Standard"&gt;
  </code></pre>
  
  <p>I want set the property <code>stretch</code> to <code>true</code> ONLY when I detect if my application is running on a phone.</p>
  
  <p>How can i achieve it?</p>