If this is only a temporary problem
You can remove the URLs directly in Google Search Console by following the steps here: https://search.google.com/search-console/removals?resource_id=sc-domain%3Awebsite.com (replace "website.com" with your actual website)
You need to have the website registered in GSC for this to work.
If you don't have access to GSC
I advise you to use canonical URLs instead, this is common practice to make sure Google does not index canonical URLs such as "/?apple" parameters.
The simple fix for this would be to include this simple line in the of each page pointing to itself:
eg. https://website.com/ gets:
<link rel="canonical" href="https://website.com/" />
and https://website.com/another-page/ gets:
<link rel="canonical" href="https://website.com/another-page/" />
this will prevent Google from putting the parameter URLs in the index.