Chess isn't so simple that the same strategy works in every position. Those are both reasonable ideas depending on the position.
Of the two, putting pawns on the same color as part of a restriction strategy is more double edged. If the restriction fails the pawns might become weak, if it succeeds you might get an advantage.
In my experience the restriction idea is more common in endgame (or at least queenless middlegame) positions. For the first half of the game or so it's probably more useful to think about whether or not your pawns are allowing your pieces to be mobile and active.
I watched two youtube videos and they both say contradicting things:
one says, put your pawns at the same color square as your opponents bishop ‘to take away spaces’ from the bishop
the other says, put your pawns on opposite square to their bishop to avoid them ‘from becoming targets.’
Which is it? I need to know. Does it change if you have minor pieces? HELP?