You can create a pop-up using a modal (like a div with position: fixed) and place a star rating component inside it. Show the modal when the user clicks a button and hide it after submitting the rating.
position: fixed