Does it matter what tags to use to represent the same kind of information on a page, say, a paragraph of an article? Does the browser engine allocate a different amount of memory under, say, the <div> and <p> tags, and can this greatly affect the performance if you need to display a page with a large number of nodes on a mobile device?
2 answers
In general, yes, because different elements have a different set of properties, and different sets of events, which in turn affects the amount of memory needed and processing. On the other hand, it all depends heavily on the internal implementation of the browser.
Therefore, in a particular case, only actual testing will help you, make a document with 10k elements of one type, another, and compare the speed and memory consumption in different browsers.
I would suggest that this influence is generally negligible. But this is just a guess.
I decided to conduct a test. Created an Html page with 10,000 div into which Lorem ipsum... inserted Lorem ipsum... on average it loads for 1.33 the same page, but 10,000 p loads on average for 1.32 .

So decide for yourself what to use.
- I meant the allocation of RAM. In the case of file size, the difference, of course, will be insignificant. - Prographer