In this case, you would simply iterate over model.layers and set layer.trainable = False on each layer, except the last one.
Another common blueprint is to use a Sequential model to stack a pre-trained model and some freshly initialized classification layers.
Thanks