Not sure what you want to do.
If you want to move to web instead of Windows/Linux application, you would have to make web application, which is HTML based. Or you can use Figma, etc.
If you want to embed web browser within your app, try WebView4Delphi. There are CEF4 etc., but I think the latter is not easy to implement and deploy.
What you want is to separate server part from GUI, and connect the server via Internet, you have to write web server part --- backend, possibly in FPC/Lazarus.