you cant reduce the DOM size without removing HTML Content from your page.
Every Heading, Paragraph, Image, List, Table, etc that you add to your page will add HTML and will count towards your DOM size.
Unless you want to delete content then you should ignore this diagnostic. It only really becomes an issue on heavily styled or animated pages, where you would notice CLS issues or other layout problems.