This had happened to me at some point last year and I found the setting to get rid of it but now I can't find it please let me know where it is in settings thank you very much. I have already checked settings > lockscreen > widgets and music is disabled. Media player still exists on lockscreen.
https://imgur.com/a/OrBY0cc
https://imgur.com/a/OrBY0cc