In the Shopify theme "Dawn," when you press the delete button for an item in your cart, the item is removed immediately without a confirmation message. Here's a way to display a dialog box to prevent accidental deletion. (Please make a backup of your theme before implementing this, as cart.js will be modified.)
Example of setting to display a confirmation dialog when deleting an item from the cart in the "Dawn" theme

Setting procedure: Modify some of the code in Assets > "cart.js"

