Laravel - include file only if screen size > 768px
<p>I have a tricky situation where I need to move my Google Ads around on Mobile. I figured out that the best way to do this is to call them using @include but only if certain screen size conditions are met.</p>

<p>I am thinking that the following would work</p>

<pre><code>@if($screensize &lt; 768px)
  @include('partials.my-advert')
@endif
</code></pre>

<p>So my question is how do I get the screen size into PHP? I can get the screen size via JS using <code>$(window).width();</code> but then how do I use this value in the Laravel if statement?</p>