@media screen and (max-width: 768px) { .mobile-image { display: block; margin-bottom: 10px; /* Add margin to mobile image */ } .desktop-image { display: none; } } @media screen and (min-width: 769px) { .mobile-image { display: none; } .desktop-image { display: block; margin-bottom: 10px; /* Add margin to desktop image */ } }