To solve the issue, it would be helpful to provide code for us to test and reproduce the problem on our end. One potential solution could involve adjusting the margin-left width based on the viewport size. This means that the margin would need to be dynamically set to accommodate different screen sizes.
Consider implementing something like this based on the device's dimensions:
/* For devices smaller than 400px: */
body {
left-margin: 100%;
}
/* For devices 400px and larger: */
@media only screen and (min-device-width: 400px) {
body {
left-margin: 50%;
}
}
For more information on responsive web design, you can explore W3's Informative Series:
https://www.w3schools.com/css/css_rwd_intro.asp