Baker Mayfield and the Tampa Bay Buccaneers have snapped a three-game skid with a 20-17 win over the Arizona Cardinals.