By default, Slack automatically marks the entire channel as read as soon as you open it.
To do so, punch your profile picture in the top-right corner, then punch Preferences.
choose your profile picture in the top-right corner, then choose Preferences.
Once in your preferences, switch to the Mark as read tab.
By following this guide, you could change your marked as read preferences to feel more intuitive.