“Starship Troopers” was a utopian novel; in the context of the fight for survival of humanity against an implacable alien foe, he depicts a more just and sustainable republic. Full citizenship is not granted as a birthright, nor on the basis of race, social status or property ownership. Rather, only those who demonstrate dedication to the common good by placing their lives on the line are trusted to vote. I think Heinlein had a very good point there, but the movie version missed it altogether.
I had enjoyed his books over the years.....in “Revolt in 2100” I believe, the protagonist uses a 1911.....Heinlein can’t be all bad!