Change query result based on breakpoints

Hello,

I have a grid with 3 columns and I display 3 articles using the query builder. When the sizes reduce, I only want to have a grid of 2 columns and would like to limite the number of article to 2 (so that I just have one row).

Is there a way I can change the number of item displayed depending on the breakpoints ?

Thanks
Philippe

It’s impossible to change query based on breakpoint. Only if you’ll hide one section (display: none) and reveal another. But it’s not a good practice. Try to use slider instead

The easy way is to create two query loops and then hide the other one in different breakpoints