title: Style View diffrent for Desktop and Mobile | asp.net core 2 mvc5
body: <p>So I have been doing c# / razor web applications in asp.net core 2 with mvc 5 and got along with it well but now I need to make a new Website which is capable of responsive design.</p>
  
  <p>I baisicly just need to change my view and its css depending on the device the user is on. Im using bootstrap already which does some part of that job already but I just want to style my view diffrently.</p>
  
  <p>Ive gone through loads of turtorials already but all of them arent in asp.net core 2 and use BundleConfigs ect. I havent found a turtorial or template for my framework and version. </p>
  
  <p>This is baisicly just something im looking for and just pseudo code: this is supposed to be a example of the full view. So obviously not an if else for every button.</p>
  
  <pre><code>if(device==mobile){
  &lt;a class="btn btn-sm"&gt;Link&lt;/a&gt;
  }
  else{
  &lt;a class="btn btn-lg"&gt;Link&lt;/a&gt;
  }
  </code></pre>
  
  <p>I know that this isnt the perfect question for stackoverflow since im just looking for help and I apologise but im just seraching for either small help or a linked turtorial or something.</p>