In my current situation, I am dealing with a large number of divs (over 300) that are being used as part of an interactive background. The issue arises when viewing the page on mobile versus desktop – there are too many divs on desktop, causing excessive scrolling. Is there a way to automatically remove divs below a certain point or prevent scrolling beyond a specified number of pixels?
I have tried various methods such as adjusting margins, padding, overflow, and using position: fixed; without success. Please understand that I am genuinely struggling with this problem and any help would be greatly appreciated. Thank you.