Mattison scored the first receiving touchdown by a Raiders running back since the 2022 season to take an early lead over the Chargers.
Nick Bosa started off with three sacks, but the 49ers' first-round pick showed an unexpected part of his considerable skill set after that.
The Raiders got creative to break a drought that saw their opponents score 49 straight points on them dating to last week's game against the Chiefs.