When you have a simple action you want users to confirm, it can help to break them out of their main flow. Focus on the action using a dialog.
Dialogs cover any other content until the action is completed or canceled. Because they interrupt a user’s main flow, use as few as possible to minimize disruption. If you have more complex information to include, use a modal instead.