Despite trying numerous solutions, I'm struggling to center my pre-loader on mobile devices. It looks fine on desktop and mobile landscape orientations, but whenever I switch to mobile portrait, it just won't center properly.
CSS:
.load-screen{
background-color: white;
opacity: 1;
position: fixed;
margin-left: auto;
z-index: 1000;
width: 100%;
height: 100vh;
transition: 0.4s ease-in;
}
.loading-image{
display: block;
width: 100%;
margin-top: 15vw;
margin-left: auto;
animation-name: loadscreen;
animation-duration: 3.5s;
animation-iteration-count: infinite;
align-items: center;
justify-content: center;
text-align: center;
}
Screenshot: Mobile Screenshot