Floro is an eight-year big league veteran with a career 3.32 ERA, but the 32-year-old is 3-5 with a 4.54 ERA and seven saves this season. Floro was a regular out of the bullpen for the 2020 World Series champion Los Angeles Dodgers.
Lopez was an All-Star in 2022 with the Baltimore Orioles before being traded to Minnesota at the August trade deadline last year. The Twins traded pitchers Cade Povich, Yennier Cano, Juan Nunez and Juan Rojas to Baltimore for Lopez in that deal.
Lopez went 3-2 with a 5.09 ERA in 37 relief appearances for the Twins this season. He returned from the 15-day injured list earlier this month after stepping away to address his mental health.
The Twins are 54-50 and lead the AL Central by two games over Cleveland. Miami is 55-48 and in a tight race for one of the NL's three wild-card spots.
The Associated Press contributed to this report.