External open link inside inappbrowser not redirecting back to app

We are using ionic capacitor. from API response we are getting some data which we are displaying on page, inside this having one url like some agreement page. while clicking on that link we are going to open that or display using inapp browser with below code if
this.iab.create(elem.href, ‘_self’, this.options); it will open in browser page on device but not getting back on app while clicking back button of device for android ios. (it is working on emulator but not on device)

Any solution how to redirect back on app

if you need it for agreement page or similar, isn’t better loading the html on a server and then load it as iframe in your app?