Scrollable iPhone element not masked correctly

Hi

I’ve cloned this scrollable iPhone element from this creator and tweaked the interaction so that it fits my project.

However, the iPhone screenshot is not masked correctly, as shown here before the scroll where it looks normal and here, after the first “page” has been swiped up.

Any clever ideas on how to resolve this issue?
Here is my sharable link

Thank you for the help guys

Okay, I just fixed it by taking the screenshot and adding the background color to the corners. I feel like that’s kind of a lazy solution though