.bar { display: flex; cursor: pointer; } @media only screen and (max-width: 992px) { .container > div:last-child { display: none; } }