Problem when interspersing photos

Hello everyone:

I have a problem with images on different devices that I hope you can help me with.

I have the following “FAQ” (“Preguntas Frecuentes”) layout :

It looks great on a computer screen, but the problem comes when we want to see this section on an iPad or mobile:

To solve this problem, I made two images:


I would like to interleave them depending on the device, my problem is that I don’t know how to do it…

I have tried to hide the different “Cards” depending on whether I am on the PC or Mobile version, but I cannot do it correctly and it does not remain “hidden” or “visible”; they are either always visible or hidden, but I cannot interleave .

Any idea how to do it?

Than you so much.


Here is my site Read-Only: LINK

Both flex and grid offer good responsive layout options.
For example at desktop;

DIV - flex, horizontal
  IMG - image 1
  IMG - image 2

Then on e.g. mobile landscape, you change the settings for your flex container div to vertical.