If we suppose that you have mobile version with max resolution to 980px you can use media query with max width 980 for mobile. In this media query you stop list item to be displayed. On the other side on desktop where media have min resolution 981px, you will set the grid to not displayed.
<style>
@media screen and (max-width: 980px){
.list { display: none; }
}
@media screen and (min-width: 981px){
.grid{ display: none; }
}
</style>
Related Posts:
- @Media min-width & max-width
- CSS/HTML: Create a glowing border around an Input Field
- Styleswitcher or themeswitcher to allow user to switch back to standard view from mobile device
- Set Image width=’x%’ (percentage width not pixel width) when inserted via the media manager?
- How to Add Custom CSS to the Media Thickbox?
- Only column gallery on mobile device
- Old Site displays on Mobile View, not New Site
- Make CSS Changes To Only Affect Mobile Browser [closed]
- Change Header Image on Blog Post for Mobile View
- Menu toggle bar works only on some pages in WordPress
- CSS is not loaded on mobile devices
- My site on mobile version is not giving responsive view
- Change mobile menu color from red to another color
- New Styles Not Rendering On Mobile Phone and Tablet
- use css for resize image into mobile thumbnail
- resize chat bar on mobile [closed]
- CSS Changes made, lost mobile functionality
- Making a custom CSS per mobile
- How to remove audio player styles added by mediaelement.js JavaScript?
- How to add input search field with roudned corners?
- Center-Align Images on Mobile Only
- Add Quicksand for mobile devices
- Making a
- What is the difference between the selectors “.class.class” and “.class .class”?
- How can I replace text with CSS?
- Bootstrap 4, How do I center-align a button?
- How do I horizontally center a span element inside a div
- Is background-color:none valid CSS?
- Text not wrapping inside a div element
- How to make padding:auto work in CSS?
- How to vertically center inside the parent element with CSS?
- CSS Outside Border
- CSS not working in Chrome
- use multiple css filters at the same time?
- Adding border to CSS triangle [duplicate]
- How to enqueue style before style.css
- WordPress Register Style Called Incorrectly
- wp_enqueue_script + how to load JS or CSS in one URL merge call?
- Duplicate and alter sidebar for Twenty Eleven
- hSite has no css on mobile [closed]
- How to dequeue styles coming from plugins?
- How to set different font family based on text language?
- How to Add Custom CSS Buttons to WordPress as a Shortcode?
- How do I add an indicator to my .menu-item if it contains a .sub-menu?
- How do you customize the admin bar for buddypress?
- Header’s CSS doesn’t work in Chrome and Opera – any ideas how to fix it?
- Code working just in specific time period
- Moving button on Online Consulting theme
- Style WP_Debug?
- How can I get the search form to be selected automatically?
- Using transient for dynamic css , how to name it?
- Is there a way to add additional CSS styles to the styles css file dynamically?
- Is it safe to use WordPress generated classes?
- Search Bar in Thesis WordPress Site
- Unstable handling of CSS under WordPress/Elementor
- Add core style in theme
- How to sync the style in the visual editor with the style of a child theme?
- How to change the settings of a video? [closed]
- Change text color dynamically in WordPress [closed]
- Stylesheet being loaded outside of
- Font styling in embedded Twitter feed
- WordPress backend is loading as a list
- Embed widget from external source (Zendesk)
- Loading a stylesheet conditionally & verifying CSS
- Dequeue styles with query doesn’t work
- Dynamically populated scss values or how to change styles by user choice
- Save custom option in CSS file
- broken internal JavaScript and CSS files
- avada woocommerce product details in grid
- WordPress login using a completely custom page and no plugins?
- Modifications on css file are not visible
- Trying to hide the contact form on a particular page
- Default Gutenberg CSS on frontend
- Hide BBPress create topic on one page
- Dropdown contents hidden behind content [closed]
- WP Admin Bar transparent on some pages (.screen-reader-shortcut)
- Admin bar default color scheme for nonregistered/nonlogged users
- Lines of CSS only being delivered while logged in
- How to Compress Css/js code in wordpress and increase loading speed?
- How to Take Logo Out of Navigation Menu? [closed]
- @media applying globally and not separately for each screen width [closed]
- Make different border color gallery items
- How remove the white space between my menu and slider?
- WordPress site using unknown overriding css
- Move both sidebars more to their sides [closed]
- Style Switching
- Theme looks ugly – FOUC – stylesheets loaded in footer
- Current Post/Page Ancestor, CSS
- How to target only one element if more elements share the same CSS class
- Can’t override CSS with child theme
- remove white overlay [closed]
- Why doesn’t media(max-width) work on h2 title?
- How to use WordPress 3.8 back-end CSS in front-end?
- Enqueue MCE Editor CSS in admin page
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts