html{ overflow-y: auto } .message-container{ position: fixed; right: 0; top: 0; z-index: 999; overflow: auto; height: 100vh; } .message-container::-webkit-scrollbar{ display: none; } .message-container .message{ min-width: 250px; max-width: 250px; margin: 25px; box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; }