Would one (or both in combination) of these get you closer? Assume the waste goes out of the floor?
https://www.screwfix.com/p/floplast-...or-white/87212
https://www.screwfix.com/p/mcalpine-...90-112mm/36108
A more radical thing would obviously to adjust the pipe under the floor. Maybe with a flex waste but I am personally not keen on those but might solve your problems .
https://www.screwfix.com/p/floplast-...te-110mm/17529