JSFiddle - React, Tailwind, and code Playground

HTML

<div class="std"><div class="home-right"></div></div>

CSS

.std {
  width: 300px;
  height: 100px;
  border: 1px solid gray;
}

.home-right {
  width: 200px;
    height: 50px;
    background: lightgray;
}

JavaScript

$(window).resize(function () {
  var width = $(window).width();
    console.log(width);
  if (width < 500) {
    $('.std .home-right').hide();
  } else {
    $('.std .home-right').show();
  }
});