@haruchan Look up the "wall angel," and also focus on seating/lying positions that will maintain your good posture. It's about building a habit. Try focusing on it consciously, regularly throughout the day, for 1-3 months.
It's easy to slouch on a couch, especially while reading / on your phone...