Andrew Scott in Elsinore (Anthony Dickenson/Focus Features)

Director Simon Stone’s biopic begins at a point of tension in 1989 on the fog-drenched stage of London’s National Theatre, where the lead actor in Hamlet has walked off the production mid-performance—reminiscent of the unease established in the opening scene of Sentimental Value, where Renate Reinsve’s character suffers a panic attack before going onstage for a Chekhov adaptation. That theatrical walkout sets up an opportunity: the actor playing Hamlet was Daniel Day-Lewis, and his replacement would be Ian Charleson, the subject of Stone’s moving, if occasionally overwrought, elegiac piece. Charleson would go on to deliver, as vividly channeled here by Andrew Scott, a towering and acclaimed performance as Hamlet, a rigorous swan song in the final weeks of Charleson’s life.

By 1989, Ian—a spiky, blond-haired, handsome Scottish-born actor nearing 40 who has spent his adult life in London—is frustrated with his career. Despite an impressive stage résumé, he’s primarily recognized by the public for his starring role in the 1981 Oscar-winning Chariots of Fire (by a cabdriver and a woman in a doctor’s office). He isn’t publicly out, nor has he publicly disclosed his HIV diagnosis, though he retains a circle of queer friends who, in brief moments, are shown to have complicated and sometimes prickly relationships with one another. Among them is filmmaker Derek Jarman (David Dawson, in a small but impactful turn), who cast Charleson in his feature film debut, 1978’s Jubilee. His closest female friend is Patsy (Billie Piper), a tart, amusing casting director and single mother who often acts as his champion in the wings: a no-nonsense, supportive figure who seems almost like a sister to him.

It’s that same hunger for meaningful stage work that leads Ian to accept when prolific theater director Richard Eyre (Johnny Flynn) chooses him to replace Day-Lewis in the title role of Hamlet. Yet taking on the part comes against a darkening medical crisis. After noticing a spot of Kaposi’s sarcoma, Ian visits an indifferent doctor who doesn’t even touch him. The doctor asks whether he’s been performing self-examinations; we watch Ian do just that at home with a handheld mirror in a quietly wrenching scene as played by Scott. When the doctor pushes AZT, Ian declines, worried about its side effects.

Ralph (Paul Chahidi), a queer dresser at the theater who notices Ian’s condition, recommends Dr. Margaret Johnson (Olivia Colman), who runs a sympathetic, holistic care unit for HIV and AIDS patients at the Royal Free Hospital. However, Johnson is reluctant to have Ian take on such a gargantuan role, concerned about his stamina and health. Under her care, and despite physical setbacks, Ian decides he doesn’t want to be a victim; instead, he charges ahead and plays the role of a lifetime. He continues rehearsing and eventually reveals his diagnosis to his castmates. By happenstance, Elsinore (the castle in Hamlet) is also the brand of a motorbike he’s interested in—a wind-in-the-hair, live-life-to-the-fullest object that he purchases without hesitation.

It’s difficult not to be hit with wallops of emotion throughout, even if one is occasionally pummeled by Stefan Gregory’s gratuitously grandiose score. Still, the distinctive, individualized storyline is smartly contained by screenwriter Stephen Beresford (Pride) within the span of a few fleeting months, while the supporting characters are drawn with specificity, thanks in part to the stellar ensemble.

Scott, known to many for more internalized, understated roles in Andrew Haigh’s All of Us Strangers and as the “hot priest” in the series Fleabag, is given plenty of showy material to work with here. (He also previously played Hamlet in London in 2017.) It’s very much a performance of bravado, but one that also has an air of quiet naturalism, inner fear, and sadness. Shifting from Scott’s volatile push-and-pull with the role, Colman’s Margaret Johnson is a woman of steely resolve. Her compassionate yet no-nonsense attitude is something she must maintain for the sake of her patients and herself. Her reluctance to see Ian take on such an exhausting role, along with their clashing personalities, provides a strong source of tension between the two, particularly in the middle section.

Stone (The Dig), who has extensive experience directing theater, brings a keen eye for performances and detail. His visual choices are echoed in Mel Page’s costumes, which are subtle rather than overtly flashy or stereotypically ’80s, highlighting the leather-jacket-and-jeans look of the decade alongside period-appropriate attire for Shakespeare’s play. Sometimes, though, Stone allows the drama to become too bombastic, particularly through Gregory’s music and editor Valerio Bonelli’s heavy cross-cutting of numerous scenes of Ian rehearsing both in the hospital and at the theater, which becomes wearying after a while. Amid that intensity, there is one welcome moment of levity when the clinic’s patients stage a dance performance set to Ethel Merman’s disco album. Despite the film being overblown at times, it’s still difficult not to be profoundly moved by an artist’s determination to survive in his final days through his art.