Particles in portrait mode does not work

I created a web site with a background using particles.
everything is working except on my iphone x or 11 pro in portrait mode.

the screen in black and particles does not show up.

landscape mode in fine.

i used this css to fix it, buy it did not work

@media only screen and (orientation:portrait){
body, head {

height: 100vw;
min-width: 100%;

please guide me to the right direction. thank you

Hi there,

That is a CSS question, which is out of the scope of this forum.

1 Like