Maybe some day AI can help with this job. Until then, apply sweat of the brow, or use a tool that specifies what happens with varying content and viewport sizes. There might exist a plug-in for Figma that allows specifying this, if you stick to a subset of the functionality.
I think you're going to have a hard time with finding a good tool. Figma doesn't fully describe the styling behavior for websites with variable/changing content -- especially where you want to define components in terms of hierarchy. I haven't checked out the above link (in the thread response) yet but am planning to soon.
Here's the github repository for the plugin https://github.com/desech/studio-react