When is a handball a booking or red card?

Handballs play a huge part in soccer, consistently making an impact and generating controversy. The rules surrounding handball are consistently changing, and currently, committing a handball anywhere on the pitch does not always result in a free kick or penalty.
As per IFAB rules, a yellow card is given if the official believes there was intent, such as attempting to score a goal or interfering with a promising attack, while an unintentional strike does not result in a booking. A red card is issued for handball if it deliberately prevents a goal or an obvious goalscoring opportunity, but an unintentional denial results in a penalty kick and a yellow card.
The handling of the ball was allowed until 1863, when a player handling the ball resulted in a free-kick, and goalkeepers could handle the ball anywhere in their own half until 1912. One of the biggest changes came in 1992 when FIFA and the IFAB stated goalkeepers could no longer pick the ball up from a back pass, resulting in an indirect free-kick if they did.
In English football, deliberate handling is an offence, but an accidental touch is also penalised if the player's arm makes their body unnaturally bigger, regardless of whether it denies a goalscoring opportunity. The Premier League operates under the IFAB Laws of the Game, with handball coming under Law 12, which states that the upper boundary of the arm is in line with the bottom of the armpit and that not every touch of a player's hand or arm with the ball is an offence.