A hurricane warning was issued for parts of Mexico’s Yucatan state, and much of Florida’s west coast was under hurricane and storm surge watches.