The problem is the Elementor Hello theme, as I changed to the classic wordpress Twenty Seventeen theme, and the formatting problem was gone. I’ve contancted Elementor support for this problem and hopefully there’s a fix soon.
I am using Elementor Hello theme with the Elementor Pro plugin. I cannot provide a link to the affected page, since I’m developing it offline.
The code provided did not fix the issue, while the only solution was that which I showed in the picture, by adding a paragraph between the last ul and the next <p> paragraph. If I were to constantly add a code on each post, that’d be a nightmare. Also, adding this code to ul list that isn’t faulty, it’d make problems for them as well. As Joy said, I’d have to specifically target the faulty ul and fix it.