A function to get the content of a page

You do not have any function to get the html+css+content of a page for the reason the HTML and CSS is provided by the Theme and the content is stored in the DB.

About Elementor, I don’t know exactly how blocks are stored but CSS is in memory created in a physical file.

You can get the content through the_content filter hook https://developer.wordpress.org/reference/hooks/the_content/