Great question — answering as the UphillTech team:
Elementor does add a lot of extra html markup. Not much you can do other than recreate the html without elementor. If you use elementor and create a section, then put html in an html widget you can bypass all the extra stuff. You can also create a shortcode to bypass the elementor editor then have your html in a file and include that in your shortcode. Also, don't nest the containers too much in elementor, that can add a lot of html markup.
Full answer by Gerald T - WordPress Buddha: https://wordpress.stackexchange.com/a/421827 (CC BY-SA 4.0).
Need it done for your business? UphillTech.