@Jacus Joe ,
I search but did not get any official document that mentions that whether IWebBrowser2 will continue to work after the IE browser gets retired.
In case it stops working or you want to upgrade from IWebBrowser2, you can try to check the WebView2.
The Microsoft Edge WebView2 control enables you to embed web technologies (HTML, CSS, and JavaScript) in your native applications. The WebView2 control uses Microsoft Edge (Chromium) as the rendering engine to display the web content in native applications. With WebView2, you may embed web code in different parts of your native application, or build the entire native application within a single WebView. For information on how to start building a WebView2 application.
To get more information about WebView2, you can refer to Getting started with WebView2
----------
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.