Download HTML content as page.html rendered in a VueJS preview

I have developed a VueJS-based application for front-end content management.
I’m seeking to integrate a ‘download’ button functionality within the application. This feature will enable the users to download the previewed and edited content as an HTML file. Additionally, I aim to implement a mechanism to exclude specific div elements from being included in the downloaded file.

I have a script.js where I have all the methods, default.html where I have the navigation bar and where the button download should be listed, and finally, preview.html where the content is called and have my v__preview div that I need to export