I had gone through some similar issues in the past and the best approach to solving these kind of issues is installing relevant WordPress plugins.
If you don’t want to indulge with the complexities, always go with Nitropack as I have implemented in my site https://qualityhomemakers.ca/ . You can check out the speed of the website overall and there are no such CLS issues.
If you are a little technical, go with the combination of WP Rocket + Perfmatters