If you receive a notification and tap it to open, the next time you receive a notification for the same app, the notification stays on screen until you open or dismiss it. If you dismiss it (swipe it up), then the next time you get a notification for that app it will dismiss itself normally after a few seconds.