change the visibility to none in js code example Example: js set visibility hidden Check this! https://dev.to/devlorenzo/js-hide-and-show-32og