You can toggle the CollisionShape's disabled
property when the player is above or below it, for example.
if player.global_transform.origin.y > platform.global_transform.origin.y + half_of_player_height: #Add more if the origin of the player is centred.
platform.get_node("CollisionShape").disabled = false
else:
platform.get_node("CollisionShape").disabled = true