This warning means the two periods are not a like-for-like comparison. A budget and an actual for the same year should use the same structure, so that a variance has one cause: the dollars.
When you compare two periods, Compare shows a warning that names each difference between the structures. Configure Structures also warns you when you change a structure that has a budget or actual counterpart.
Comparing different years can use different structures. That is normal when a contractor restructures at the start of a fiscal year. Stages that exist in only one period are labeled.
If this doesn't work: see How do I compare two periods (budget vs actual)? for how Compare works.
Watch: Periods, compare from 1:32
Full guide section: Periods
Related: How do I compare two periods (budget vs actual)? | What is a period, and how do I start a new one? | How do per-structure routing and overrides work?