How can we generate a page with HTML response

On making an API request we are getting HTML code as a response and I want to load the HTML page which is a landing page. Can you please suggest here how to load the HTML page.

Thanks in advance!

I need more information. If you are already fetch html code, the page should be there… can you please post the code here?

I am making an API call and getting a response as HTML code and I want to load that page, please refer to the screenshot below:

image

Why do you make that as XHR? Is that an XHR in the store? Do you have a public url for that so I can see the communication?

Do you get an full page back or just a fragment?

This is resolved Thanks for your Time @rschwietzke