Thanks for letting me know! There are some cases where the banner is immediately above another banner or alert, which is why it needs the margin. I was able to relocate the margin to remove the impact when the component is hidden.
https://github.com/discourse/discourse-welcome-link-banner/pull/8