title: How can I make my site open Instagram in-app?
body: <p>Hi I'd like my site to automatically redirect to an Instagram page. I found this site that kinda show the code I need, but if differs for Android / iPhone. Now is my question is there a way to identify which smartphone to user is using. And automatically open the app, using the right code for their OS?</p>
  
  <p>using this site <a href="https://app.urlgeni.us/#/" rel="nofollow noreferrer">https://app.urlgeni.us/#/</a></p>
  
  <p></p>
  
  <pre><code>&lt;a href="intent://instagram.com/_u/kopstootkompanen/#Intent;package=com.instagram.android;scheme=https;end"&gt;&lt;img src="https://q-play.nl/wp-content/uploads/2018/08/android-logo-png-transparent.png" style="width:182px; height:186px" title="Android" alt="Android"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Using the code I currently have the user first needs to choose their OS, but I don't want that.</p>