My goal is to develop a media feed that includes various types of content such as text, images, and videos. To ensure user safety, I want to conceal any explicit posts with a warning that requires the user to click in order to view the content.
Although I have managed to implement this feature, I'm facing an issue where the size of the div housing the post fluctuates when the warning is clicked. How can I resolve this so that the div maintains a consistent size even when the internal content changes?