My iPhone has ran out of storage and I just deleted a lot of photos and videos and there's still no storage

So I moved a whole lot of photos and videos to iCloud Drive and deleted them off the phone itself to clear space up but it still says there's no storage left. Please help me to know what's wrong and what to do so I can clear up space.

Try factory resetting it