In macOS Mojave or later, use the keyboard shortcut Command (⌘) + Shift + 5 to open the Screenshot app and set a timed delay in the "Options" tab.