@deepthikotegar,
Hiding and showing HTML elements on the page based on the width of the device heavily relies on CSS. Using CSS media queries you can hide/show HTML elements on the page.
Try and test the CSS examples below on your own HTML elements:
/** Desktop View When window is smaller than 1200px but above 960px **/
@media (min-width: 960px) and (max-width: 1200px){
.myDiv { display: none; }
}
/** Tablet View When window is smaller than 960px but above 768px **/
@media (min-width: 767px) and (max-width: 960px){
.myDiv { display: none; }
}
/** Mobile View When window is smaller than 767px but above 481px **/
@media (min-width: 481px) and (max-width: 767px) {
.myDiv { display: none; }
}