Since historical fiction usually talks about a certain era in history, I'd say the correct answer is that 'it's set against a historical backdrop'. hope it helps you
Science fiction – a genre of fiction dealing with the impact of imagined innovations in science or technology, often in a futuristic setting. or depicting space exploration. Exploring the consequences of such innovations is the traditional purpose of science fiction, making it a "literature of ideas".