HTML widget code to change mobile layout.

I have a custom HTML code with CSS and Jquery that is embedded to a HTML widget. I want it to look different on mobile. I noticed that wix don’t use media queries for Desktop and Mobile. How can I change the layout of the code inside html widget on mobile? Is there a way to detect if it is viewed on mobile inside the html widget itself? I’m kinda new to wix.

Hi,
I don’t know your HTML widget code but there is formFactor method of wix code.

If is possible to pass props to a HTML component using postMessage method and receiving it with onmessage event.
Good luck!
Roi

Yesterday I had an interesting discussion with my colleague. He wants to go to Spain this summer. Somewhere in Barcelona, he’s already booked a room at a 4-star hotel. He said he had fully trusted the testimonials from the previous visitors. I told him it was a silly thing to do because now there are such widgets, like this one Customer Testimonials Slider — widget for any website (Easy and free) which can form genuine testimonials that look like real. He didn’t believe me and even laughed at me. Well, it’s his choice and as for me I always prefer to be careful.