Spa application (with iframes) to a modern SPA [closed]

I have a laravel project with php8.1, which as frontend uses simple, blade with Html, bootstrap, javascript other things on the front. This page consists of several modules or pages, which perform different things (business logic) and uses iframes to simulate a SPA, placing the main content of the page inside the iframe and removing the iframe each time a new module is loaded, this to remove all the dom and compiled scripts (which persist in the browser unless the page is reloaded), freeing memory space in the browser. This solution, although functional, seems rustic to me.

I would like to use a more modern tool to produce the SPA effect, along with the performance it offers without having to intervene much in the code. I have seen frameworks like react or vue, but from what little I have seen about their documentation I have assumed that I would have to make a lot of changes in the front end of the application. I would also like to know if it has been right or not to use SPA as a solution, since it works perfectly, although it can cut a little the screen space that can occupy some windows. Thanks for your attention.