How to make a 3D phone?

Hello,

I have come across a webflow project (which I cannot find again) with an iphone mockup, which was faked in perspective. I think they used box shadow for the trick. Can anyone help me how to fake “extrude” a div with rounded corners?

Do you mean recreating a phone using only divs?

Yes, but only the body, no buttons, no screen. I remember it was also an isometric effect, where the phone rotated from front view to isometric side view.

Found a project with a 3D phone that does the job.