Well, it's been done, so it's clearly feasible.
Write an interesting story that involves science, rather than interesting science tangentially related to a story.
Someone mentioned Andy Weir. The Martian had a strong science core - yet would anyone really have cared about Macgyvering survival on Mars if it was just a dry recitation of hypothetical situations, if there hadn't been an astronaut in danger to make it personal, and people forced to make life-or-death decisions and calculations in the face of long odds? Make your readers care about the characters, give them sufficient stakes, and keep the science as focused on the characters and stakes as possible.
A novel about isolating a new genetic marker? Not likely to be interesting, even if the scientists discussing it are naked in a vat of jello.
A novel in which isolating a new genetic marker means survival or extinction in the face of a pandemic? Now, I'm more likely to listen. Even a novel with smaller stakes can be made interesting with the right characters - say, a more human-based story of an underdog scientist whose future hinges on proving a breakthrough theorem, in the face of fierce resistance from other institutions and possible betrayal by a colleague. If I care about that scientist, I'll care about the theorem.
Figure out what science you want to focus on. Craft a story that makes that science relevant and interesting, avoid infodumps for the sake of showing off research, and readers will follow however deep you want to throw your story in.
I suggest seeking out hard, science-based SF to see how other authors have pulled it off. It may not be as common as softer stuff, but it's out there.