@heyloura Or, like this, if you style the summary element to look like a button and the form element to look like a dialog box.

<details>
<summary>Delete</summary>
<form action="/delete-something">
Are you sure?
<button>Yes, delete something</button>
</form>
</details>